1 2 3 4 5 6 7 8 9 10 11 12 13 14
#[derive(Copy, Clone)] pub enum IIRFilterCoefficient { Off = 0, Two = 2, Four = 4, Eight = 8, Sixteen = 16, } impl IIRFilterCoefficient { pub fn bits(&self) -> u8 { *self as u8 } }