#ifndef CC110L_H #define CC110L_H #include #include // Booster pins (I/O from the side of the MCU) // // P1.0 I GDO2 (hi-impedance) // P1.5 O SCLK // P1.6 I MISO // P1.7 O MOSI // P2.7/XOUT O CS // P2.6/XIN I GDO0 (packet indicator) // Defines (if no default specified, default to the booster pack) // // RADIO_SS_(PORT|BIT) // RADIO_CLK_(PORT|BIT) // RADIO_MOSI_(PORT|BIT) // RADIO_MISO_(PORT|BIT) // // RADIO_ #define RADIO_CS_PORT P2OUT #define RADIO_CS_BIT 0x80 #define RADIO_CLK_PORT P1OUT #define RADIO_CLK_BIT 0x20 #define RADIO_MOSI_PORT P1OUT #define RADIO_MOSI_BIT 0x80 #define RADIO_MISO_PORT P1IN #define RADIO_MISO_BIT 0x40 #define RADIO_PI_PORT P2IN #define RADIO_PI_BIT 0x40 #define RADIO_SYNC 0x1339 #define RADIO_ADDR 0x66 #define RADIO_CHANNEL 0x00 void radio_init(); uint8_t radio_test(uint8_t reg); void burst_test(); void radio_send(uint8_t *buffer, uint8_t length); uint8_t radio_recv(uint8_t *buffer); uint8_t radio_get_status(); #endif