The RFM23 channel.
More...
◆ handle_queue()
void Artemis::Channels::RFM23::handle_queue |
( |
| ) |
|
Helper function to handle packet queue.
This is a helper function called in loop() that checks for packets and routes them to the RFM23 radio.
◆ loop()
void Artemis::Channels::RFM23::loop |
( |
| ) |
|
The RFM23 loop function.
This function runs in an infinite loop after setup() completes. It routes packets going to and coming from the RFM23 radio.
◆ rfm23_channel()
void Artemis::Channels::RFM23::rfm23_channel |
( |
| ) |
|
The top-level channel definition.
This is the function that defines the RFM23 channel. Like an Arduino script, it has a setup() function that is run once, then loop() runs forever.
◆ setup()
void Artemis::Channels::RFM23::setup |
( |
| ) |
|
The RFM23 setup function.
This function is run once, when the channel is started. It connects to the RFM23 over a SPI connection.
◆ config
Initial value:= {
.freq = 433,
.tx_power = RH_RF22_RF23BP_TXPOW_30DBM,
.pins =
{
.spi_miso = SPI1_D0,
.spi_mosi = SPI1_D1,
.spi_sck = SPI1_SCLK,
.nirq = NIRQ,
.cs = SPI1_CS1,
.tx_on = TX_ON,
.rx_on = RX_ON,
},
}
The radio's configuration used throughout the channel.