|
F439_CPP_TX-RX_LoRa_Project
|
SX1262 LoRa radio driver public interface. More...


Go to the source code of this file.
Data Structures | |
| struct | SX1262_Handle |
| Hardware binding for a single SX1262 instance. More... | |
| struct | SX1262_LoRaConfig |
| LoRa modem configuration parameters. More... | |
| struct | SX1262_IrqResult |
| IRQ processing result and optional received payload data. More... | |
Enumerations | |
| enum | SX1262_TxPollResult { SX1262_TXPOLL_NONE = 0 , SX1262_TXPOLL_DONE , SX1262_TXPOLL_TIMEOUT } |
| Polling result for TX completion helper logic. More... | |
Functions | |
| void | SX1262_Init (SX1262_Handle *sx) |
| Initialize the SX1262 hardware interface. | |
| bool | SX1262_ConfigureLoRa (SX1262_Handle *sx, const SX1262_LoRaConfig *cfg) |
| Configure the SX1262 for LoRa operation. | |
| bool | SX1262_StartRxContinuous (SX1262_Handle *sx) |
| Enter continuous receive mode. | |
| bool | SX1262_SendString (SX1262_Handle *sx, const char *s) |
| Send a NUL-terminated string through the radio. | |
| uint8_t | SX1262_GetStatusRaw (SX1262_Handle *sx) |
| Read the raw radio status byte. | |
| uint16_t | SX1262_GetIrqStatusRaw (SX1262_Handle *sx) |
| Read the raw IRQ status bits. | |
| uint16_t | SX1262_ClearAndReadIrq (SX1262_Handle *sx) |
| Read and clear IRQ status bits. | |
| bool | SX1262_TxDonePoll (SX1262_Handle *sx) |
| Poll for TX completion. | |
| void | SX1262_ClearIrq (SX1262_Handle *sx, uint16_t mask) |
| Clear selected IRQ bits. | |
| bool | SX1262_SetStandbyRc (SX1262_Handle *sx) |
| Put the radio into RC standby mode. | |
| bool | SX1262_SendBuffer (SX1262_Handle *sx, const char *buf) |
| Send a character buffer through the radio. | |
| bool | SX1262_SendStringPlainText (SX1262_Handle *sx, const char *s) |
| Send a plaintext string without RadioLink framing. | |
| bool | SX1262_SendBytes (SX1262_Handle *sx, const uint8_t *buf, uint8_t len) |
| Send a raw byte buffer through the radio. | |
| bool | SX1262_ProcessIrq (SX1262_Handle *sx, SX1262_IrqResult *out) |
| Process a DIO1-driven IRQ event. | |
SX1262 LoRa radio driver public interface.
| enum SX1262_TxPollResult |
| uint16_t SX1262_ClearAndReadIrq | ( | SX1262_Handle * | sx | ) |
Read and clear IRQ status bits.
| sx | Driver handle describing the SPI and GPIO bindings. |
| void SX1262_ClearIrq | ( | SX1262_Handle * | sx, |
| uint16_t | mask ) |
Clear selected IRQ bits.
| sx | Driver handle describing the SPI and GPIO bindings. |
| mask | IRQ mask bits to clear. |
| bool SX1262_ConfigureLoRa | ( | SX1262_Handle * | sx, |
| const SX1262_LoRaConfig * | cfg ) |
Configure the SX1262 for LoRa operation.
| sx | Driver handle describing the SPI and GPIO bindings. |
| cfg | Requested LoRa modem configuration. |
| uint16_t SX1262_GetIrqStatusRaw | ( | SX1262_Handle * | sx | ) |
Read the raw IRQ status bits.
| sx | Driver handle describing the SPI and GPIO bindings. |
| uint8_t SX1262_GetStatusRaw | ( | SX1262_Handle * | sx | ) |
Read the raw radio status byte.
| sx | Driver handle describing the SPI and GPIO bindings. |
| void SX1262_Init | ( | SX1262_Handle * | sx | ) |
Initialize the SX1262 hardware interface.
| sx | Driver handle describing the SPI and GPIO bindings. |
| bool SX1262_ProcessIrq | ( | SX1262_Handle * | sx, |
| SX1262_IrqResult * | out ) |
Process a DIO1-driven IRQ event.
| sx | Driver handle describing the SPI and GPIO bindings. |
| out | Output structure populated with decoded IRQ results. |
| bool SX1262_SendBuffer | ( | SX1262_Handle * | sx, |
| const char * | buf ) |
Send a character buffer through the radio.
| sx | Driver handle describing the SPI and GPIO bindings. |
| buf | Buffer to transmit. |
| bool SX1262_SendBytes | ( | SX1262_Handle * | sx, |
| const uint8_t * | buf, | ||
| uint8_t | len ) |
Send a raw byte buffer through the radio.
| sx | Driver handle describing the SPI and GPIO bindings. |
| buf | Buffer to transmit. |
| len | Number of bytes to transmit. |
| bool SX1262_SendString | ( | SX1262_Handle * | sx, |
| const char * | s ) |
Send a NUL-terminated string through the radio.
| sx | Driver handle describing the SPI and GPIO bindings. |
| s | NUL-terminated string to transmit. |
| bool SX1262_SendStringPlainText | ( | SX1262_Handle * | sx, |
| const char * | s ) |
Send a plaintext string without RadioLink framing.
| sx | Driver handle describing the SPI and GPIO bindings. |
| s | NUL-terminated string to transmit. |
| bool SX1262_SetStandbyRc | ( | SX1262_Handle * | sx | ) |
Put the radio into RC standby mode.
| sx | Driver handle describing the SPI and GPIO bindings. |
| bool SX1262_StartRxContinuous | ( | SX1262_Handle * | sx | ) |
Enter continuous receive mode.
| sx | Driver handle describing the SPI and GPIO bindings. |
| bool SX1262_TxDonePoll | ( | SX1262_Handle * | sx | ) |
Poll for TX completion.
| sx | Driver handle describing the SPI and GPIO bindings. |