cc1101 0.1.3

A platform agnostic driver to interface with the CC1101 (Sub-1GHz RF Transceiver)
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub enum Mode {
    Single = 0x00,
    Burst = 0x40,
}

impl Mode {
    pub fn offset(self, addr: u8) -> u8 {
        (self as u8) | addr
    }
}