⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

encode_address

Function encode_address 

Source
pub const fn encode_address(dlci: u8, cr: bool, ea: bool) -> u8
Expand description

Encode the RFCOMM address byte from DLCI, C/R bit, and EA bit

Format: D5 D4 D3 D2 D1 C/R EA

  • DLCI in bits [7:2]
  • C/R (Command/Response) in bit 1
  • EA (Extended Address) in bit 0 (always 1 for single-byte)