Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MidnightBlueLabs/tetra-bluestation
/ functions
Functions
1,532 in github.com/MidnightBlueLabs/tetra-bluestation
⨍
Functions
1,532
◇
Types & classes
504
↓ 556 callers
Method
write_bits
Write up to 64 bits, advancing pos. If autoexpand is enabled, will advance end as well and/or realloc if buffer full If disables, panics if exceeds en
crates/tetra-core/src/bitbuffer.rs:354
↓ 488 callers
Method
read_field
Similar to read_bits, but returns a ParseError::BufferEnded with the given error_string if not enough bits are available.
crates/tetra-core/src/bitbuffer.rs:200
↓ 96 callers
Method
push_back
(&mut self, message: SapMsg)
crates/tetra-entities/src/messagerouter.rs:27
↓ 93 callers
Method
push
(&mut self, acelp_data: Vec<u8>)
crates/tetra-entities/src/net_brew/components/jitter_buffer.rs:56
↓ 92 callers
Function
parse_type3_generic
Parse type3 field into a placeholder struct, pending implementation. Checks whether a given type3 field identifier is present. If not, returns None wi
crates/tetra-core/src/typed_pdu_fields.rs:200
↓ 92 callers
Function
write_type3_generic
Write an optional Type-3 element using a `to_bitbuf` function.
crates/tetra-core/src/typed_pdu_fields.rs:367
↓ 64 callers
Function
write_type2_generic
Write one Type-2 element. If `value` is `Some(v)`, writes P-bit=1 then `len` bits of `v`. If `None`, writes P-bit=0.
crates/tetra-core/src/typed_pdu_fields.rs:114
↓ 63 callers
Function
parse_type2_generic
( obit: bool, buffer: &mut BitBuffer, num_bits: usize, field_name: &'static st
crates/tetra-core/src/typed_pdu_fields.rs:60
↓ 60 callers
Method
as_ref
(&self)
crates/tetra-config/src/bluestation/config.rs:30
↓ 58 callers
Method
seek
Seek to a specific position in the file
crates/tetra-entities/src/phy/components/phy_io_file.rs:151
↓ 56 callers
Function
read_obit
Read the o-bit between type1 and type2/type3 elements
crates/tetra-core/src/typed_pdu_fields.rs:23
↓ 55 callers
Method
get_len_remaining
Number of bits left in the window (bits), from pos to end.
crates/tetra-core/src/bitbuffer.rs:468
↓ 53 callers
Function
setup_logging_verbose
Sets up logging with maximum verbosity (trace level) Mainly for unit tests
crates/tetra-core/src/debug.rs:225
↓ 53 callers
Function
write_mbit
Write the m-bit before a type3 or type4 element, and trailing the message
crates/tetra-core/src/typed_pdu_fields.rs:48
↓ 46 callers
Function
write_obit
Write the o-bit between type1 and type2/type3 elements
crates/tetra-core/src/typed_pdu_fields.rs:28
↓ 44 callers
Method
get_len
Active window length (bits), from start to end
crates/tetra-core/src/bitbuffer.rs:463
↓ 44 callers
Method
to_bitbuf
(&self, buf: &mut BitBuffer)
crates/tetra-pdus/src/llc/pdus/bl_ack.rs:36
↓ 41 callers
Method
send
(&self, command: ControlCommand)
crates/tetra-entities/src/net_control/channel.rs:24
↓ 39 callers
Method
into_raw
Convert this enum back into the raw integer value
crates/tetra-pdus/src/cmce/enums/call_status.rs:29
↓ 34 callers
Method
add_timeslots
Add a number of timeslots to a TdmaTime
crates/tetra-core/src/tdma_time.rs:86
↓ 28 callers
Method
config
Access immutable config.
crates/tetra-config/src/bluestation/config.rs:161
↓ 28 callers
Method
contains
Checks if the given address falls within any of the ranges. Note that range.end is inclusive, so if an address is exactly equal to range.end, it is co
crates/tetra-core/src/ranges.rs:50
↓ 24 callers
Method
get_raw_start
Get absolute value of window start
crates/tetra-core/src/bitbuffer.rs:512
↓ 24 callers
Method
submit_message
(&mut self, message: SapMsg)
crates/tetra-entities/tests/common/component_test.rs:190
↓ 22 callers
Method
dump_sinks
(&mut self)
crates/tetra-entities/tests/common/component_test.rs:198
↓ 21 callers
Method
peek_bits
Peek `num_bits` at the current pos, without advancing. Returns None on overflow or if `num_bits>64`.
crates/tetra-core/src/bitbuffer.rs:165
↓ 21 callers
Method
run_stack
(&mut self, num_ticks: Option<usize>)
crates/tetra-entities/tests/common/component_test.rs:186
↓ 20 callers
Method
get_raw_pos
Get absolute current position, disregarding start and end of window
crates/tetra-core/src/bitbuffer.rs:520
↓ 20 callers
Method
set_raw_end
Move window end. Ensure new_end >= max(pos, start) and new_end <= capacity
crates/tetra-core/src/bitbuffer.rs:532
↓ 20 callers
Function
write_u32_le
Write a little-endian u32 to a byte vec
crates/tetra-entities/src/net_brew/protocol.rs:179
↓ 19 callers
Method
populate_entities
Automatically add a set of components and sinks to the stack. Depending on the stack mode, the components will be created with the appropriate BS or M
crates/tetra-entities/tests/common/component_test.rs:78
↓ 19 callers
Method
read_bits
Read `num_bits` at the current pos, advancing on success.
crates/tetra-core/src/bitbuffer.rs:193
↓ 19 callers
Method
set_raw_start
Move window start. Ensure new_start <= min(end, pos)
crates/tetra-core/src/bitbuffer.rs:525
↓ 18 callers
Method
copy_bits
Read `num_bits` from a source bitbuffer, starting at `pos`. Write this data into the current bitbuffer at the current `pos`.
crates/tetra-core/src/bitbuffer.rs:421
↓ 18 callers
Method
to_bitarr
Takes slice as parameter for output. Reads slice.len() bits from bitbuf[pos], and writes to output slice. 1 bit per byte.
crates/tetra-core/src/bitbuffer.rs:138
↓ 17 callers
Method
seek
Seek `pos` to `offset` (relative to window start).
crates/tetra-core/src/bitbuffer.rs:483
↓ 15 callers
Method
into_raw
Convert this enum back into the raw integer value
crates/tetra-pdus/src/mm/enums/reject_cause.rs:59
↓ 14 callers
Method
send_reliable
(&mut self, payload: &[u8])
crates/tetra-entities/src/network/transports/tcp.rs:129
↓ 14 callers
Method
set_raw_pos
Move pos to absolute location, irrespective of window. Ensure start <= pos <= end
crates/tetra-core/src/bitbuffer.rs:541
↓ 14 callers
Method
state_write
Write guard for mutable state.
crates/tetra-config/src/bluestation/config.rs:171
↓ 13 callers
Method
register_entity
(&mut self, entity: T)
crates/tetra-entities/tests/common/component_test.rs:182
↓ 12 callers
Method
clear
(&mut self)
crates/tetra-entities/src/phy/components/fcfb.rs:396
↓ 12 callers
Method
try_recv
Non-blocking: receive a pending command, if any.
crates/tetra-entities/src/net_control/channel.rs:58
↓ 12 callers
Method
ul_get_usage
(&self, ts: TdmaTime)
crates/tetra-entities/src/umac/subcomp/bs_sched.rs:392
↓ 11 callers
Method
get_next_chunk
Writes the next chunk to the bitbuffer, if there is space. First chunk is the provided resource, possibly changed to indicate fragmentation. Subsequen
crates/tetra-entities/src/umac/subcomp/bs_frag.rs:208
↓ 11 callers
Method
into_raw
Convert this enum back into the raw integer value
crates/tetra-pdus/src/mle/enums/mle_pdu_type_ul.rs:33
↓ 11 callers
Function
make_control_link
Create a bidirectional (dispatcher, endpoint) pair. - The **dispatcher** (worker side) sends [`ControlCommand`]s and receives [`ControlResponse`]s. -
crates/tetra-entities/src/net_control/channel.rs:83
↓ 11 callers
Method
write_bit
Write a single bit to pos
crates/tetra-core/src/bitbuffer.rs:311
↓ 10 callers
Method
register
Tolerant registration; if ISSI already registered, we overwrite it with a fresh Subscriber struct
crates/tetra-config/src/bluestation/state.rs:33
↓ 9 callers
Method
get_pos
Get the current position, relative to window
crates/tetra-core/src/bitbuffer.rs:478
↓ 9 callers
Method
into_raw
Convert this enum back into the raw integer value
crates/tetra-saps/src/lcmc/enums/alloc_type.rs:28
↓ 9 callers
Method
peek_bits_startoffset
Peek `num_bits` with offset from window start, without advancing. Returns None on overflow or if `num_bits>64`.
crates/tetra-core/src/bitbuffer.rs:182
↓ 9 callers
Method
read
(&mut self, buf: &mut [u8])
crates/tetra-entities/src/network/transports/websocket.rs:69
↓ 9 callers
Method
register_entity
(&mut self, entity: Box<dyn TetraEntityTrait>)
crates/tetra-entities/src/messagerouter.rs:78
↓ 9 callers
Method
seek_rel
Move the current bit‐pointer by `offset` bits (can be negative). Panics if the resulting position would lie outside the window `[start..=end]`.
crates/tetra-core/src/bitbuffer.rs:497
↓ 9 callers
Method
to_bitstr
Convert the entire window (start to end) into a String of '0'/'1' characters.
crates/tetra-core/src/bitbuffer.rs:154
↓ 8 callers
Method
as_slice
(&self)
crates/tetra-core/src/ranges.rs:44
↓ 8 callers
Method
connect
(&mut self)
crates/tetra-entities/src/network/transports/tcp.rs:104
↓ 8 callers
Method
dump_ul_schedule
(&self, skip_empty: bool)
crates/tetra-entities/src/umac/subcomp/bs_sched.rs:1219
↓ 8 callers
Method
emit_subscriber_update
(&self, queue: &mut MessageQueue, issi: u32, groups: Vec<u32>, action: BrewSubscriberAction)
crates/tetra-entities/src/mm/mm_bs.rs:52
↓ 8 callers
Function
get_num_fill_bits
Returns the number of fill bits at the end of the PDU in bitbuf, given the total pdu_len_bits.
crates/tetra-entities/src/umac/subcomp/fillbits.rs:5
↓ 8 callers
Method
into_bitvec
Convert entire window (start to end) into an array with 0 or 1 value per byte
crates/tetra-core/src/bitbuffer.rs:454
↓ 8 callers
Function
is_brew_gssi_routable
Determine if a given GSSI should be routed over Brew, or is restricted to local handling
crates/tetra-entities/src/net_brew/components/brew_routable.rs:25
↓ 8 callers
Method
mark_transmitted
Pending → Transmitted: MAC layer has sent the PDU over the air.
crates/tetra-core/src/tx_receipt.rs:129
↓ 8 callers
Function
parse_brew_message
Parse a raw binary Brew message into a typed BrewMessage
crates/tetra-entities/src/net_brew/protocol.rs:189
↓ 8 callers
Function
parse_type2_struct
Parse a Type-2 element into a struct that implements `from_bitbuf`.
crates/tetra-core/src/typed_pdu_fields.rs:88
↓ 8 callers
Method
send
(&self, event: TelemetryEvent)
crates/tetra-entities/src/net_telemetry/channel.rs:24
↓ 8 callers
Method
ul_process_cap_req
Tries to find a way to satisfy a granting request, and reserves the slots in the schedule. If successful, returns a BasicSlotgrant with the granting d
crates/tetra-entities/src/umac/subcomp/bs_sched.rs:320
↓ 8 callers
Function
write_type2_struct
Write a Type-2 element from a struct that implements `to_bitbuf`.
crates/tetra-core/src/typed_pdu_fields.rs:135
↓ 7 callers
Method
affiliate
Add GSSI to subscriber's attached groups and global set
crates/tetra-config/src/bluestation/state.rs:67
↓ 7 callers
Method
circuit_is_active
(&self, dir: Direction, ts: u8)
crates/tetra-entities/src/umac/subcomp/bs_sched.rs:494
↓ 7 callers
Function
count_d_sds_data
Count D-SDS-DATA messages (LcmcMleUnitdataReq to Mle) in sink output
crates/tetra-entities/tests/test_sds_bs.rs:63
↓ 7 callers
Method
get_raw_end
Get absolute value of window end, disregarding start of window
crates/tetra-core/src/bitbuffer.rs:516
↓ 7 callers
Method
pop_front
(&mut self)
crates/tetra-entities/src/messagerouter.rs:44
↓ 7 callers
Function
read_u32_le
Read a little-endian u32 from a byte slice
crates/tetra-entities/src/net_brew/protocol.rs:155
↓ 7 callers
Function
register_subscriber
Helper: register a subscriber ISSI in the StackState subscriber registry
crates/tetra-entities/tests/test_sds_bs.rs:20
↓ 7 callers
Method
state_read
Read guard for mutable state.
crates/tetra-config/src/bluestation/config.rs:166
↓ 7 callers
Method
ul_ts_to_sched_index
(&self, ts: &TdmaTime)
crates/tetra-entities/src/umac/subcomp/bs_sched.rs:223
↓ 6 callers
Method
check_sequence
( &mut self, train_pos_in_burst: usize, burst_len: usize, train_type: Training
crates/tetra-entities/src/phy/components/demodulator.rs:485
↓ 6 callers
Method
deaffiliate
Remove GSSI from subscriber's attached groups. Update global set if no more subscribers are affiliated with this GSSI.
crates/tetra-config/src/bluestation/state.rs:74
↓ 6 callers
Method
delayed
Get a sample with a given delay
crates/tetra-entities/src/phy/components/history.rs:23
↓ 6 callers
Method
deliver_all_messages
(&mut self)
crates/tetra-entities/tests/common/component_test.rs:194
↓ 6 callers
Method
is_active
(&self, dir: Direction, ts: u8)
crates/tetra-entities/src/umac/subcomp/circuit_mgr.rs:23
↓ 6 callers
Function
parse_type4_struct
Parse a Type-4 element into a Vec of structs that implement `from_bitbuf`.
crates/tetra-core/src/typed_pdu_fields.rs:438
↓ 6 callers
Method
position
Get the current file position
crates/tetra-entities/src/phy/components/phy_io_file.rs:141
↓ 6 callers
Method
process
Return true if processing should be continued, false if a new demodulated slot is available.
crates/tetra-entities/src/phy/components/soapy_dev.rs:434
↓ 6 callers
Function
tetra_scramb_bits
Scramble or unscramble the given BitBuffer. Generate lfsr sequence for given lfsr initialization value and XOR it with the given buffer, for all bits
crates/tetra-entities/src/lmac/components/scrambler.rs:52
↓ 6 callers
Function
tetra_scramb_get_init
Compute the initial LFSR state from (mcc, mnc, colour).
crates/tetra-entities/src/lmac/components/scrambler.rs:63
↓ 6 callers
Method
try_send
Internal send implementation - does the actual I/O
crates/tetra-entities/src/network/transports/tcp.rs:78
↓ 6 callers
Function
write_type4_struct
Write a Type-4 element from a Vec of structs using a `to_bitbuf` function.
crates/tetra-core/src/typed_pdu_fields.rs:530
↓ 6 callers
Function
write_u16_le
Write a little-endian u16 to a byte vec
crates/tetra-entities/src/net_brew/protocol.rs:174
↓ 5 callers
Method
age
(self, now: TdmaTime)
crates/tetra-core/src/tdma_time.rs:97
↓ 5 callers
Method
copy_bits_from_bitarr
(&mut self, buf: &[u8])
crates/tetra-core/src/bitbuffer.rs:435
↓ 5 callers
Method
decode
Decode bitcode bytes into a [`TelemetryEvent`].
crates/tetra-entities/src/net_telemetry/codec.rs:20
↓ 5 callers
Function
decode_cp
Decodes control plane message from type5 to type1 bits Returns (buf, bool) tuple buf is BitBuffer with type1 bits if decoding successful bool is true
crates/tetra-entities/src/lmac/components/errorcontrol.rs:85
↓ 5 callers
Method
deregister
Deregister an ISSI, removing it from the registry and cleaning up any group affiliations
crates/tetra-config/src/bluestation/state.rs:53
↓ 5 callers
Method
dl_enqueue_grant
Registers that we should transmit a MAC-RESOURCE or similar with a grant, somewhere this tick
crates/tetra-entities/src/umac/subcomp/bs_sched.rs:405
↓ 5 callers
Method
encode_command
Encode a [`Command`] to bitcode bytes.
crates/tetra-entities/src/net_control/codec.rs:19
↓ 5 callers
Function
encode_cp
Encodes control plane message from type1 to type5 bits Handles CP channels except AACH
crates/tetra-entities/src/lmac/components/errorcontrol.rs:19
↓ 5 callers
Method
is_registered
(&self, issi: u32)
crates/tetra-config/src/bluestation/state.rs:28
next →
1–100 of 1,532, ranked by callers