Skip to main content

parse_response_control_bytes

Function parse_response_control_bytes 

Source
pub fn parse_response_control_bytes(
    status: &mut P1Status,
    c0: u8,
    c1: u8,
    c2: u8,
    c3: u8,
    c4: u8,
)
Expand description

Parse the 5 response control bytes (C0-C4) from a radio-to-host sub-frame and update the accumulated status.

The response address is extracted from C0 bits 6:1 (masked with 0x7E). PTT is bit 0 of C0.