![]() |
SX126x-Arduino
2.0.1
|
Go to the source code of this file.
Functions | |
void | SX126xIoInit (void) |
Initializes the radio I/Os pins interface. More... | |
void | SX126xIoReInit (void) |
Initializes the radio I/Os pins interface after deep sleep wake. More... | |
void | SX126xIoIrqInit (DioIrqHandler dioIrq) |
Initializes DIO IRQ handlers. More... | |
void | SX126xIoDeInit (void) |
De-initializes the radio I/Os pins interface. More... | |
void | SX126xReset (void) |
HW Reset of the radio. More... | |
void | SX126xWaitOnBusy (void) |
Blocking loop to wait while the Busy pin in high. More... | |
void | SX126xWakeup (void) |
Wakes up the radio. More... | |
void | SX126xWriteCommand (RadioCommands_t opcode, uint8_t *buffer, uint16_t size) |
Send a command that write data to the radio. More... | |
void | SX126xReadCommand (RadioCommands_t opcode, uint8_t *buffer, uint16_t size) |
Send a command that read data from the radio. More... | |
void | SX126xWriteRegister (uint16_t address, uint8_t value) |
Write a single byte of data to the radio memory. More... | |
uint8_t | SX126xReadRegister (uint16_t address) |
Read a single byte of data from the radio memory. More... | |
void | SX126xSetRfTxPower (int8_t power) |
Sets the radio output power. More... | |
uint8_t | SX126xGetPaSelect (uint32_t channel) |
Gets the board PA selection configuration. More... | |
void | SX126xAntSwOn (void) |
Initializes the RF Switch I/Os pins interface. More... | |
void | SX126xAntSwOff (void) |
De-initializes the RF Switch I/Os pins interface. More... | |
void | SX126xRXena (void) |
Set the RF antenna switch to receiving mode. More... | |
void | SX126xTXena (void) |
Set the RF antenna switch to transmitting mode. More... | |
bool | SX126xCheckRfFrequency (uint32_t frequency) |
Checks if the given RF frequency is supported by the hardware. More... | |
void | SX126xGetStats (uint16_t *nb_pkt_received, uint16_t *nb_pkt_crc_error, uint16_t *nb_pkt_length_error) |
Gets info on the number of packets received. More... | |
void | SX126xResetStats (void) |
Resets values read by GetStats. More... | |
Variables | |
SX126x_t | SX126x |
Radio hardware and global parameters. More... | |
void SX126xIoInit | ( | void | ) |
Initializes the radio I/Os pins interface.
void SX126xIoReInit | ( | void | ) |
Initializes the radio I/Os pins interface after deep sleep wake.
void SX126xIoIrqInit | ( | DioIrqHandler | dioIrq | ) |
Initializes DIO IRQ handlers.
dioIrq | Array containing the IRQ callback functions |
void SX126xIoDeInit | ( | void | ) |
De-initializes the radio I/Os pins interface.
void SX126xReset | ( | void | ) |
HW Reset of the radio.
void SX126xWaitOnBusy | ( | void | ) |
Blocking loop to wait while the Busy pin in high.
void SX126xWakeup | ( | void | ) |
Wakes up the radio.
void SX126xWriteCommand | ( | RadioCommands_t | opcode, |
uint8_t * | buffer, | ||
uint16_t | size | ||
) |
Send a command that write data to the radio.
opcode | Opcode of the command |
buffer | Buffer to be send to the radio |
size | Size of the buffer to send |
void SX126xReadCommand | ( | RadioCommands_t | opcode, |
uint8_t * | buffer, | ||
uint16_t | size | ||
) |
Send a command that read data from the radio.
opcode | Opcode of the command |
buffer | Buffer holding data from the radio |
size | Size of the buffer |
void SX126xWriteRegister | ( | uint16_t | address, |
uint8_t | value | ||
) |
Write a single byte of data to the radio memory.
address | The address of the first byte to write in the radio |
value | The data to be written in radio's memory |
uint8_t SX126xReadRegister | ( | uint16_t | address | ) |
Read a single byte of data from the radio memory.
address | The address of the first byte to write in the radio |
value | The value of the byte at the given address in radio's memory |
void SX126xSetRfTxPower | ( | int8_t | power | ) |
Sets the radio output power.
power | Sets the RF output power |
uint8_t SX126xGetPaSelect | ( | uint32_t | channel | ) |
Gets the board PA selection configuration.
channel | Channel frequency in Hz |
PaSelect | RegPaConfig PaSelect value |
void SX126xAntSwOn | ( | void | ) |
Initializes the RF Switch I/Os pins interface.
void SX126xAntSwOff | ( | void | ) |
De-initializes the RF Switch I/Os pins interface.
void SX126xRXena | ( | void | ) |
Set the RF antenna switch to receiving mode.
void SX126xTXena | ( | void | ) |
Set the RF antenna switch to transmitting mode.
bool SX126xCheckRfFrequency | ( | uint32_t | frequency | ) |
Checks if the given RF frequency is supported by the hardware.
frequency | RF frequency to be checked |
isSupported | [true: supported, false: unsupported] |
void SX126xGetStats | ( | uint16_t * | nb_pkt_received, |
uint16_t * | nb_pkt_crc_error, | ||
uint16_t * | nb_pkt_length_error | ||
) |
Gets info on the number of packets received.
nb_pkt_received | Number of received packets with CRC OK |
nb_pkt_crc_error | Number of received packets with CRC error |
nb_pkt_length_error | Number of received packets with length error |
void SX126xResetStats | ( | void | ) |
Resets values read by GetStats.
SX126x_t SX126x |
Radio hardware and global parameters.
Radio hardware and global parameters