Skip to main content

packet_word_count

Function packet_word_count 

Source
pub const fn packet_word_count(message_type: u8) -> usize
Expand description

Number of 32-bit words in a UMP for a given Message Type, per the UMP spec.

0x0,0x1,0x2,0x6,0x7 → 1 word; 0x3,0x4,0x8,0x9,0xA → 2 words; 0xB,0xC → 3 words; 0x5,0xD,0xE,0xF → 4 words.