19 #define RADIO_MAX_PACKET_LENGTH 64u 26 const uint8_t *Radio_ConfigurationArray;
28 uint8_t Radio_ChannelNumber;
29 uint8_t Radio_PacketLength;
30 uint8_t Radio_State_After_Power_Up;
32 uint16_t Radio_Delay_Cnt_After_Reset;
35 } tRadioConfiguration;
37 typedef struct si4455_ph_int_t {
41 uint8_t RxFifoAlmostFull : 1;
42 uint8_t TxFifoAlmostEmpty : 1;
43 uint8_t Reserved1 : 1;
44 uint8_t Crc32Error : 1;
46 uint8_t PacketSent : 1;
47 uint8_t Reserved2 : 2;
52 typedef struct si4455_modem_int_t {
56 uint8_t SyncDetect : 1;
57 uint8_t PreambleDetect : 1;
58 uint8_t InvalidPreamble : 1;
61 uint8_t InvalidSync : 1;
62 uint8_t PostambleDetect : 1;
63 uint8_t Reserved1 : 1;
68 typedef struct si4455_chip_int_t {
72 uint8_t Reserved1 : 2;
73 uint8_t ChipReady : 1;
75 uint8_t StateChange : 1;
76 uint8_t FifoUnderflowOverflowError : 1;
78 uint8_t Reserved2 : 1;
85 si4455_ph_int_t intPh;
86 si4455_modem_int_t intModem;
87 si4455_chip_int_t intChip;
93 const struct spi_t *Spi;
96 struct si4455_state_t *State;
97 const uint8_t *Config;
109 void vRadio_Init(
const struct si4455_t *radio);
110 bool gRadio_CheckTransmitted(
const struct si4455_t *radio);
111 void vRadio_StartTx(
const struct si4455_t *radio, uint8_t channel, uint8_t *
data, uint8_t length);
Driver for port initialisazion and IO functions for nRF52 uC.
Driver for the MCU's SPI blocks.
#define RADIO_MAX_PACKET_LENGTH
uint8_t data[USBNET_RX_BUF_SIZE]