Solaris Software
Loading...
Searching...
No Matches
sx1262.h File Reference

SX1262 LoRa telemetry consumer interface and configuration. More...

Include dependency graph for sx1262.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SX1262_Ctx_t

Macros

#define K_SX1262_MAILBOX_SIZE   100U
#define K_SX1262_TASK_TIMEOUT_MS   1000U
#define SX1262_OPCODE_SET_STANDBY   0x80
#define SX1262_OPCODE_SET_TX   0x83
#define SX1262_OPCODE_SET_PACKET_TYPE   0x8A
#define SX1262_OPCODE_SET_RF_FRECUENCY   0x86
#define SX1262_OPCODE_SET_PA_CONFIG   0x95
#define SX1262_OPCODE_SET_TX_PARAMS   0x8E
#define SX1262_OPCODE_SET_BUFFER_BASE_ADDRESS   0x8F
#define SX1262_OPCODE_WRITE_BUFFER   0x0E
#define SX1262_OPCODE_SET_MODULATION_PARAMS   0x8B
#define SX1262_OPCODE_SET_PACKET_PARAMS   0x8C
#define SX1262_OPCODE_SET_DIO_IRQ_PARAMS   0x08
#define SX1262_OPCODE_CLEAR_IRQ_STATUS   0x02
#define SX1262_OPCODE_CALIBRATE_IMAGE   0x98
#define SX1262_OPCODE_WRITE_REGISTER   0x0D
#define K_SX1262_MAX_PACKETS_TO_TRANSMIT   50U
#define SX1262_MAX_BUSY_TIMEOUT_MS   1000U
#define SX1262_MAX_DONE_TIMEOUT_MS   2000U
#define SX1262_BUSY_PIN   5
#define SX1262_DIO1_PIN   6
#define SX126X_NRESET_PIN   7
#define K_SX1262_SPI   2U
#define SX1262_OPCODE_GET_IRQ_STATUS   0x12
#define SX1262_IRQ_TX_DONE   0x0001U
#define SX1262_IRQ_TIMEOUT   0x0200U
#define SX1262_OPCODE_SET_REGULATOR_MODE   0x96U
#define SX1262_REGULATOR_DC_DC   0x01U
#define SX1262_OPCODE_SET_DIO3_AS_TCXO_CTRL   0x97U
#define SX1262_TCXO_VOLTAGE_1V7   0x01U
#define SX1262_TCXO_STARTUP_DELAY   0x000140UL
#define SX1262_OPCODE_CALIBRATE   0x89U
#define SX1262_CALIBRATE_ALL   0x7FU
#define SX1262_OPCODE_CLEAR_DEVICE_ERRORS   0x07U
#define SX1262_OPCODE_GET_DEVICE_ERRORS   0x17U

Enumerations

enum  SX1262_TxState_t {
  SX1262_TX_STATE_IDLE , SX1262_TX_STATE_WRITE_BUFFER , SX1262_TX_STATE_SET_PARAMS , SX1262_TX_STATE_SET_TX ,
  SX1262_TX_STATE_WAIT_TX_DONE
}

Functions

const SPP_SERVICE_ConsumerContract_t * SPP_SERVICES_SX1262_getConsumerContract (void)
 Returns the SX1262 consumer contract for PUBSUB registration.

Detailed Description

SX1262 LoRa telemetry consumer interface and configuration.

Definition in file sx1262.h.

Macro Definition Documentation

◆ K_SX1262_MAILBOX_SIZE

#define K_SX1262_MAILBOX_SIZE   100U

◆ K_SX1262_TASK_TIMEOUT_MS

#define K_SX1262_TASK_TIMEOUT_MS   1000U

Definition at line 17 of file sx1262.h.

◆ SX1262_OPCODE_SET_STANDBY

#define SX1262_OPCODE_SET_STANDBY   0x80

Definition at line 19 of file sx1262.h.

Referenced by SX1262_SetStandby().

◆ SX1262_OPCODE_SET_TX

#define SX1262_OPCODE_SET_TX   0x83

Definition at line 20 of file sx1262.h.

Referenced by SX1262_SetTx().

◆ SX1262_OPCODE_SET_PACKET_TYPE

#define SX1262_OPCODE_SET_PACKET_TYPE   0x8A

Definition at line 21 of file sx1262.h.

Referenced by SX1262_SetPacketType().

◆ SX1262_OPCODE_SET_RF_FRECUENCY

#define SX1262_OPCODE_SET_RF_FRECUENCY   0x86

Definition at line 22 of file sx1262.h.

Referenced by SX1262_SetRfFrequency().

◆ SX1262_OPCODE_SET_PA_CONFIG

#define SX1262_OPCODE_SET_PA_CONFIG   0x95

Definition at line 23 of file sx1262.h.

Referenced by SX1262_SetPaConfig().

◆ SX1262_OPCODE_SET_TX_PARAMS

#define SX1262_OPCODE_SET_TX_PARAMS   0x8E

Definition at line 24 of file sx1262.h.

Referenced by SX1262_SetTxParams().

◆ SX1262_OPCODE_SET_BUFFER_BASE_ADDRESS

#define SX1262_OPCODE_SET_BUFFER_BASE_ADDRESS   0x8F

Definition at line 25 of file sx1262.h.

Referenced by SX1262_SetBufferBaseAddress().

◆ SX1262_OPCODE_WRITE_BUFFER

#define SX1262_OPCODE_WRITE_BUFFER   0x0E

Definition at line 26 of file sx1262.h.

Referenced by SX1262_WriteBuffer().

◆ SX1262_OPCODE_SET_MODULATION_PARAMS

#define SX1262_OPCODE_SET_MODULATION_PARAMS   0x8B

Definition at line 27 of file sx1262.h.

Referenced by SX1262_SetModulationParams().

◆ SX1262_OPCODE_SET_PACKET_PARAMS

#define SX1262_OPCODE_SET_PACKET_PARAMS   0x8C

Definition at line 28 of file sx1262.h.

Referenced by SX1262_SetPacketParams().

◆ SX1262_OPCODE_SET_DIO_IRQ_PARAMS

#define SX1262_OPCODE_SET_DIO_IRQ_PARAMS   0x08

Definition at line 29 of file sx1262.h.

Referenced by SX1262_SetDioIrqParams().

◆ SX1262_OPCODE_CLEAR_IRQ_STATUS

#define SX1262_OPCODE_CLEAR_IRQ_STATUS   0x02

Definition at line 30 of file sx1262.h.

Referenced by SX1262_ClearIrqStatus().

◆ SX1262_OPCODE_CALIBRATE_IMAGE

#define SX1262_OPCODE_CALIBRATE_IMAGE   0x98

Definition at line 31 of file sx1262.h.

Referenced by SX1262_CalibrateImage().

◆ SX1262_OPCODE_WRITE_REGISTER

#define SX1262_OPCODE_WRITE_REGISTER   0x0D

Definition at line 32 of file sx1262.h.

◆ K_SX1262_MAX_PACKETS_TO_TRANSMIT

#define K_SX1262_MAX_PACKETS_TO_TRANSMIT   50U

Definition at line 33 of file sx1262.h.

Referenced by SPP_SERVICES_SX1262_consumeData().

◆ SX1262_MAX_BUSY_TIMEOUT_MS

#define SX1262_MAX_BUSY_TIMEOUT_MS   1000U

Definition at line 34 of file sx1262.h.

Referenced by SPP_SERVICES_SX1262_consumeData(), and SX1262_WaitBusy().

◆ SX1262_MAX_DONE_TIMEOUT_MS

#define SX1262_MAX_DONE_TIMEOUT_MS   2000U

Definition at line 35 of file sx1262.h.

Referenced by SPP_SERVICES_SX1262_consumeData().

◆ SX1262_BUSY_PIN

#define SX1262_BUSY_PIN   5

◆ SX1262_DIO1_PIN

#define SX1262_DIO1_PIN   6

Definition at line 38 of file sx1262.h.

Referenced by SX1262_InitInterrupts().

◆ SX126X_NRESET_PIN

#define SX126X_NRESET_PIN   7

Definition at line 39 of file sx1262.h.

Referenced by SPP_SERVICES_SX1262_init().

◆ K_SX1262_SPI

#define K_SX1262_SPI   2U

Definition at line 40 of file sx1262.h.

Referenced by SPP_SERVICES_SX1262_init().

◆ SX1262_OPCODE_GET_IRQ_STATUS

#define SX1262_OPCODE_GET_IRQ_STATUS   0x12

Definition at line 43 of file sx1262.h.

Referenced by SX1262_GetIrqStatus().

◆ SX1262_IRQ_TX_DONE

#define SX1262_IRQ_TX_DONE   0x0001U

Definition at line 44 of file sx1262.h.

Referenced by SPP_SERVICES_SX1262_consumeData().

◆ SX1262_IRQ_TIMEOUT

#define SX1262_IRQ_TIMEOUT   0x0200U

Definition at line 45 of file sx1262.h.

Referenced by SPP_SERVICES_SX1262_consumeData().

◆ SX1262_OPCODE_SET_REGULATOR_MODE

#define SX1262_OPCODE_SET_REGULATOR_MODE   0x96U

Definition at line 47 of file sx1262.h.

Referenced by SX1262_SetRegulatorMode().

◆ SX1262_REGULATOR_DC_DC

#define SX1262_REGULATOR_DC_DC   0x01U

Definition at line 48 of file sx1262.h.

Referenced by SX1262_SetRegulatorMode().

◆ SX1262_OPCODE_SET_DIO3_AS_TCXO_CTRL

#define SX1262_OPCODE_SET_DIO3_AS_TCXO_CTRL   0x97U

Definition at line 49 of file sx1262.h.

Referenced by SX1262_SetDio3AsTcxoCtrl().

◆ SX1262_TCXO_VOLTAGE_1V7

#define SX1262_TCXO_VOLTAGE_1V7   0x01U

Definition at line 50 of file sx1262.h.

Referenced by SX1262_SetDio3AsTcxoCtrl().

◆ SX1262_TCXO_STARTUP_DELAY

#define SX1262_TCXO_STARTUP_DELAY   0x000140UL

Definition at line 51 of file sx1262.h.

Referenced by SX1262_SetDio3AsTcxoCtrl().

◆ SX1262_OPCODE_CALIBRATE

#define SX1262_OPCODE_CALIBRATE   0x89U

Definition at line 52 of file sx1262.h.

Referenced by SX1262_Calibrate().

◆ SX1262_CALIBRATE_ALL

#define SX1262_CALIBRATE_ALL   0x7FU

Definition at line 53 of file sx1262.h.

Referenced by SX1262_Calibrate().

◆ SX1262_OPCODE_CLEAR_DEVICE_ERRORS

#define SX1262_OPCODE_CLEAR_DEVICE_ERRORS   0x07U

Definition at line 54 of file sx1262.h.

Referenced by SX1262_ClearDeviceErrors().

◆ SX1262_OPCODE_GET_DEVICE_ERRORS

#define SX1262_OPCODE_GET_DEVICE_ERRORS   0x17U

Definition at line 55 of file sx1262.h.

Referenced by SX1262_GetDeviceErrors().

Enumeration Type Documentation

◆ SX1262_TxState_t

Enumerator
SX1262_TX_STATE_IDLE 
SX1262_TX_STATE_WRITE_BUFFER 
SX1262_TX_STATE_SET_PARAMS 
SX1262_TX_STATE_SET_TX 
SX1262_TX_STATE_WAIT_TX_DONE 

Definition at line 57 of file sx1262.h.

Function Documentation

◆ SPP_SERVICES_SX1262_getConsumerContract()

const SPP_SERVICE_ConsumerContract_t * SPP_SERVICES_SX1262_getConsumerContract ( void )

Returns the SX1262 consumer contract for PUBSUB registration.

Returns
Pointer to the static consumer contract.

Definition at line 80 of file sx1262.c.

References SPP_SERVICES_SX1262_getConsumerContract(), and sx1262Contract.

Referenced by CUSTOM_registerConsumerProducer(), guard_startInitializationOfModules(), and SPP_SERVICES_SX1262_getConsumerContract().

Here is the call graph for this function:
Here is the caller graph for this function: