mirror of
https://github.com/ion232/reticulum-zig.git
synced 2025-12-22 06:37:05 +00:00
28 lines
425 B
Zig
28 lines
425 B
Zig
pub const Bandwidth = BitRate;
|
|
|
|
pub const BitRate = struct {
|
|
pub const none: ?BitRate = null;
|
|
pub const default = BitRate{
|
|
.bits = .{ .count = 1, .prefix = .kilo },
|
|
.rate = .per_second,
|
|
};
|
|
|
|
bits: Bits,
|
|
rate: Rate,
|
|
};
|
|
|
|
pub const Bits = struct {
|
|
count: usize,
|
|
prefix: Prefix,
|
|
};
|
|
|
|
pub const Prefix = enum {
|
|
none,
|
|
kilo,
|
|
mega,
|
|
};
|
|
|
|
pub const Rate = enum {
|
|
per_second,
|
|
};
|