canboat_rs/pgns/
lighting_program.rs1use crate::pgn_types::PgnType;
2pub const LENGTH: usize = 2usize;
3pub const PGN: u32 = 130566u32;
4use bitfield::bitfield;
5bitfield! {
6 #[doc = "Lighting Program"] pub struct LightingProgram([u8]); impl Debug; u32; pub
7 program_id, _ : 7usize, 0usize;
8}
9impl LightingProgram<&[u8]> {
10 pub fn is_match(&self, pgn: u32) -> bool {
11 130566u32 == pgn
12 }
13 pub fn get_pgn() -> u32 {
14 130566u32
15 }
16 pub fn get_message_type() -> PgnType {
17 PgnType::Fast
18 }
19}