![]() |
LibDriver SX1262
|
sx1262 command driver modules More...
Data Structures | |
| struct | sx1262_handle_s |
| sx1262 handle structure definition More... | |
| struct | sx1262_info_s |
| sx1262 information structure definition More... | |
Typedefs | |
| typedef struct sx1262_handle_s | sx1262_handle_t |
| sx1262 handle structure definition | |
| typedef struct sx1262_info_s | sx1262_info_t |
| sx1262 information structure definition | |
Functions | |
| uint8_t | sx1262_info (sx1262_info_t *info) |
| get chip's information | |
| uint8_t | sx1262_irq_handler (sx1262_handle_t *handle) |
| irq handler | |
| uint8_t | sx1262_init (sx1262_handle_t *handle) |
| initialize the chip | |
| uint8_t | sx1262_deinit (sx1262_handle_t *handle) |
| close the chip | |
| uint8_t | sx1262_lora_transmit (sx1262_handle_t *handle, sx1262_clock_source_t standby_src, uint16_t preamble_length, sx1262_lora_header_t header_type, sx1262_lora_crc_type_t crc_type, sx1262_bool_t invert_iq_enable, uint8_t *buf, uint16_t len, uint32_t us) |
| send the lora data | |
| uint8_t | sx1262_lora_cad (sx1262_handle_t *handle, sx1262_bool_t *enable) |
| run the cad | |
| uint8_t | sx1262_single_receive (sx1262_handle_t *handle, double us) |
| enter to the single receive mode | |
| uint8_t | sx1262_continuous_receive (sx1262_handle_t *handle) |
| enter to the continuous receive mode | |
| uint8_t | sx1262_write_register (sx1262_handle_t *handle, uint16_t reg, uint8_t *buf, uint16_t len) |
| write the register | |
| uint8_t | sx1262_read_register (sx1262_handle_t *handle, uint16_t reg, uint8_t *buf, uint16_t len) |
| read the register | |
| uint8_t | sx1262_write_buffer (sx1262_handle_t *handle, uint8_t offset, uint8_t *buf, uint16_t len) |
| write the buffer | |
| uint8_t | sx1262_read_buffer (sx1262_handle_t *handle, uint8_t offset, uint8_t *buf, uint16_t len) |
| read the buffer | |
| uint8_t | sx1262_check_packet_error (sx1262_handle_t *handle, sx1262_bool_t *enable) |
| check the packet error | |
| uint8_t | sx1262_set_sleep (sx1262_handle_t *handle, sx1262_start_mode_t mode, sx1262_bool_t rtc_wake_up_enable) |
| enter to the sleep mode | |
| uint8_t | sx1262_set_standby (sx1262_handle_t *handle, sx1262_clock_source_t src) |
| enter to the standby mode | |
| uint8_t | sx1262_set_frequency_synthesis (sx1262_handle_t *handle) |
| enter to the frequency synthesis mode | |
| uint8_t | sx1262_set_tx (sx1262_handle_t *handle, uint32_t timeout) |
| enter to the tx mode | |
| uint8_t | sx1262_set_rx (sx1262_handle_t *handle, uint32_t timeout) |
| enter to the rx mode | |
| uint8_t | sx1262_timeout_convert_to_register (sx1262_handle_t *handle, double us, uint32_t *reg) |
| convert the timeout to the register raw data | |
| uint8_t | sx1262_timeout_convert_to_data (sx1262_handle_t *handle, uint32_t reg, double *us) |
| convert the register raw data to the timeout | |
| uint8_t | sx1262_set_stop_timer_on_preamble (sx1262_handle_t *handle, sx1262_bool_t enable) |
| stop timer on preamble | |
| uint8_t | sx1262_set_rx_duty_cycle (sx1262_handle_t *handle, uint32_t rx_period, uint32_t sleep_period) |
| set the rx duty cycle | |
| uint8_t | sx1262_set_cad (sx1262_handle_t *handle) |
| run the cad | |
| uint8_t | sx1262_set_tx_continuous_wave (sx1262_handle_t *handle) |
| enter to the tx continuous wave mode | |
| uint8_t | sx1262_set_tx_infinite_preamble (sx1262_handle_t *handle) |
| enter to the tx infinite preamble mode | |
| uint8_t | sx1262_set_regulator_mode (sx1262_handle_t *handle, sx1262_regulator_mode_t mode) |
| set the regulator_mode | |
| uint8_t | sx1262_set_calibration (sx1262_handle_t *handle, uint8_t settings) |
| set the calibration settings | |
| uint8_t | sx1262_set_calibration_image (sx1262_handle_t *handle, uint8_t freq1, uint8_t freq2) |
| set the calibration image frequency | |
| uint8_t | sx1262_set_pa_config (sx1262_handle_t *handle, uint8_t pa_duty_cycle, uint8_t hp_max) |
| set the pa config | |
| uint8_t | sx1262_set_rx_tx_fallback_mode (sx1262_handle_t *handle, sx1262_rx_tx_fallback_mode_t mode) |
| set the rx tx fallback mode | |
| uint8_t | sx1262_set_dio_irq_params (sx1262_handle_t *handle, uint16_t irq_mask, uint16_t dio1_mask, uint16_t dio2_mask, uint16_t dio3_mask) |
| set the dio irq params | |
| uint8_t | sx1262_get_irq_status (sx1262_handle_t *handle, uint16_t *status) |
| get the irq status | |
| uint8_t | sx1262_clear_irq_status (sx1262_handle_t *handle, uint16_t clear_irq_param) |
| clear the irq status | |
| uint8_t | sx1262_set_dio2_as_rf_switch_ctrl (sx1262_handle_t *handle, sx1262_bool_t enable) |
| set dio2 as rf switch ctrl | |
| uint8_t | sx1262_set_dio3_as_tcxo_ctrl (sx1262_handle_t *handle, sx1262_tcxo_voltage_t voltage, uint32_t delay) |
| set dio3 as tcxo ctrl | |
| uint8_t | sx1262_frequency_convert_to_register (sx1262_handle_t *handle, uint32_t freq, uint32_t *reg) |
| convert the frequency to the register raw data | |
| uint8_t | sx1262_frequency_convert_to_data (sx1262_handle_t *handle, uint32_t reg, uint32_t *freq) |
| convert the register raw data to the frequency | |
| uint8_t | sx1262_set_rf_frequency (sx1262_handle_t *handle, uint32_t reg) |
| set the rf frequency | |
| uint8_t | sx1262_set_packet_type (sx1262_handle_t *handle, sx1262_packet_type_t type) |
| set the packet type | |
| uint8_t | sx1262_get_packet_type (sx1262_handle_t *handle, sx1262_packet_type_t *type) |
| get the packet type | |
| uint8_t | sx1262_set_tx_params (sx1262_handle_t *handle, int8_t dbm, sx1262_ramp_time_t t) |
| set the tx params | |
| uint8_t | sx1262_set_gfsk_modulation_params (sx1262_handle_t *handle, uint32_t br, sx1262_gfsk_pulse_shape_t shape, sx1262_gfsk_bandwidth_t bw, uint32_t fdev) |
| set the modulation params in GFSK mode | |
| uint8_t | sx1262_gfsk_bit_rate_convert_to_register (sx1262_handle_t *handle, uint32_t br, uint32_t *reg) |
| convert the bit rate to the register raw data | |
| uint8_t | sx1262_gfsk_bit_rate_convert_to_data (sx1262_handle_t *handle, uint32_t reg, uint32_t *br) |
| convert the register raw data to the bit rate | |
| uint8_t | sx1262_gfsk_frequency_deviation_convert_to_register (sx1262_handle_t *handle, uint32_t freq, uint32_t *reg) |
| convert the frequency deviation to the register raw data | |
| uint8_t | sx1262_gfsk_frequency_deviation_convert_to_data (sx1262_handle_t *handle, uint32_t reg, uint32_t *freq) |
| convert the register raw data to the frequency deviation | |
| uint8_t | sx1262_set_lora_modulation_params (sx1262_handle_t *handle, sx1262_lora_sf_t sf, sx1262_lora_bandwidth_t bw, sx1262_lora_cr_t cr, sx1262_bool_t low_data_rate_optimize_enable) |
| set the modulation params in LoRa mode | |
| uint8_t | sx1262_set_gfsk_packet_params (sx1262_handle_t *handle, uint16_t preamble_length, sx1262_gfsk_preamble_detector_length_t detector_length, uint8_t sync_word_length, sx1262_gfsk_addr_filter_t filter, sx1262_gfsk_packet_type_t packet_type, uint8_t payload_length, sx1262_gfsk_crc_type_t crc_type, sx1262_bool_t whitening_enable) |
| set the packet params in GFSK mode | |
| uint8_t | sx1262_set_lora_packet_params (sx1262_handle_t *handle, uint16_t preamble_length, sx1262_lora_header_t header_type, uint8_t payload_length, sx1262_lora_crc_type_t crc_type, sx1262_bool_t invert_iq_enable) |
| set the packet params in LoRa mode | |
| uint8_t | sx1262_set_cad_params (sx1262_handle_t *handle, sx1262_lora_cad_symbol_num_t num, uint8_t cad_det_peak, uint8_t cad_det_min, sx1262_lora_cad_exit_mode_t mode, uint32_t timeout) |
| set the cad params | |
| uint8_t | sx1262_set_buffer_base_address (sx1262_handle_t *handle, uint8_t tx_base_addr, uint8_t rx_base_addr) |
| set the buffer base address | |
| uint8_t | sx1262_set_lora_symb_num_timeout (sx1262_handle_t *handle, uint8_t symb_num) |
| set the lora symbol number timeout | |
| uint8_t | sx1262_get_status (sx1262_handle_t *handle, uint8_t *status) |
| get the status | |
| uint8_t | sx1262_get_rx_buffer_status (sx1262_handle_t *handle, uint8_t *payload_length_rx, uint8_t *rx_start_buffer_pointer) |
| get the rx buffer status | |
| uint8_t | sx1262_get_gfsk_packet_status (sx1262_handle_t *handle, uint8_t *rx_status, uint8_t *rssi_sync_raw, uint8_t *rssi_avg_raw, float *rssi_sync, float *rssi_avg) |
| get the packet status in GFSK mode | |
| uint8_t | sx1262_get_lora_packet_status (sx1262_handle_t *handle, uint8_t *rssi_pkt_raw, int8_t *snr_pkt_raw, uint8_t *signal_rssi_pkt_raw, float *rssi_pkt, float *snr_pkt, float *signal_rssi_pkt) |
| get the packet status in LoRa mode | |
| uint8_t | sx1262_get_instantaneous_rssi (sx1262_handle_t *handle, uint8_t *rssi_inst_raw, float *rssi_inst) |
| get the instantaneous rssi | |
| uint8_t | sx1262_get_stats (sx1262_handle_t *handle, uint16_t *pkt_received, uint16_t *pkt_crc_error, uint16_t *pkt_length_header_error) |
| get the stats | |
| uint8_t | sx1262_reset_stats (sx1262_handle_t *handle, uint16_t pkt_received, uint16_t pkt_crc_error, uint16_t pkt_length_header_error) |
| reset the stats | |
| uint8_t | sx1262_get_device_errors (sx1262_handle_t *handle, uint16_t *op_error) |
| get the device errors | |
| uint8_t | sx1262_clear_device_errors (sx1262_handle_t *handle) |
| clear the device errors | |
sx1262 command driver modules
| typedef struct sx1262_handle_s sx1262_handle_t |
sx1262 handle structure definition
| typedef struct sx1262_info_s sx1262_info_t |
sx1262 information structure definition
| enum sx1262_bool_t |
sx1262 bool enumeration definition
| Enumerator | |
|---|---|
| SX1262_BOOL_FALSE | disable function |
| SX1262_BOOL_TRUE | enable function |
Definition at line 62 of file driver_sx1262.h.
| enum sx1262_calibration_t |
sx1262 calibration enumeration definition
Definition at line 98 of file driver_sx1262.h.
sx1262 clock source enumeration definition
| Enumerator | |
|---|---|
| SX1262_CLOCK_SOURCE_RC_13M | rc 13MHz |
| SX1262_CLOCK_SOURCE_XTAL_32MHZ | xtal 32MHz |
Definition at line 80 of file driver_sx1262.h.
sx1262 fsk rx status enumeration definition
Definition at line 349 of file driver_sx1262.h.
sx1262 gfsk addr filter enumeration definition
Definition at line 274 of file driver_sx1262.h.
sx1262 gfsk bandwidth enumeration definition
Definition at line 191 of file driver_sx1262.h.
sx1262 gfsk crc type enumeration definition
Definition at line 295 of file driver_sx1262.h.
sx1262 gfsk packet type enumeration definition
Definition at line 284 of file driver_sx1262.h.
sx1262 gfsk preamble detector length enumeration definition
Definition at line 262 of file driver_sx1262.h.
sx1262 gfsk pulse shape enumeration definition
Definition at line 179 of file driver_sx1262.h.
| enum sx1262_irq_t |
sx1262 irq enumeration definition
Definition at line 112 of file driver_sx1262.h.
sx1262 lora bandwidth enumeration definition
Definition at line 234 of file driver_sx1262.h.
sx1262 lora cad exit mode enumeration definition
Definition at line 337 of file driver_sx1262.h.
sx1262 lora cad symbol num enumeration definition
Definition at line 325 of file driver_sx1262.h.
| enum sx1262_lora_cr_t |
sx1262 lora coding rate enumeration definition
| Enumerator | |
|---|---|
| SX1262_LORA_CR_4_5 | cr 4/5 |
| SX1262_LORA_CR_4_6 | cr 4/6 |
| SX1262_LORA_CR_4_7 | cr 4/7 |
| SX1262_LORA_CR_4_8 | cr 4/8 |
Definition at line 251 of file driver_sx1262.h.
sx1262 lora crc type enumeration definition
| Enumerator | |
|---|---|
| SX1262_LORA_CRC_TYPE_OFF | crc off |
| SX1262_LORA_CRC_TYPE_ON | crc on |
Definition at line 316 of file driver_sx1262.h.
| enum sx1262_lora_header_t |
sx1262 lora header enumeration definition
| Enumerator | |
|---|---|
| SX1262_LORA_HEADER_EXPLICIT | explicit header |
| SX1262_LORA_HEADER_IMPLICIT | implicit header |
Definition at line 307 of file driver_sx1262.h.
| enum sx1262_lora_sf_t |
sx1262 lora spreading factor enumeration definition
Definition at line 219 of file driver_sx1262.h.
| enum sx1262_op_error_t |
sx1262 op error enumeration definition
Definition at line 364 of file driver_sx1262.h.
| enum sx1262_packet_type_t |
sx1262 packet type enumeration definition
| Enumerator | |
|---|---|
| SX1262_PACKET_TYPE_GFSK | gfsk mode |
| SX1262_PACKET_TYPE_LORA | lora mode |
| SX1262_PACKET_TYPE_FHSS | fhss mode |
Definition at line 154 of file driver_sx1262.h.
| enum sx1262_ramp_time_t |
sx1262 ramp time enumeration definition
Definition at line 164 of file driver_sx1262.h.
sx1262 regulator mode enumeration definition
| Enumerator | |
|---|---|
| SX1262_REGULATOR_MODE_ONLY_LDO | only ldo used for all modes |
| SX1262_REGULATOR_MODE_DC_DC_LDO | dc_dc + ldo used for standby_xosc, fs, rx and rx modes |
Definition at line 89 of file driver_sx1262.h.
sx1262 rx tx fallback mode enumeration definition
Definition at line 129 of file driver_sx1262.h.
| enum sx1262_start_mode_t |
sx1262 start mode enumeration definition
| Enumerator | |
|---|---|
| SX1262_START_MODE_COLD | cold start mode |
| SX1262_START_MODE_WARM | warm start mode |
Definition at line 71 of file driver_sx1262.h.
sx1262 tcxo voltage enumeration definition
Definition at line 139 of file driver_sx1262.h.
| uint8_t sx1262_check_packet_error | ( | sx1262_handle_t * | handle, |
| sx1262_bool_t * | enable ) |
check the packet error
| [in] | *handle | pointer to an sx1262 handle structure |
| [out] | *enable | pointer to a bool buffer |
Definition at line 1053 of file driver_sx1262.c.
| uint8_t sx1262_clear_device_errors | ( | sx1262_handle_t * | handle | ) |
clear the device errors
| [in] | *handle | pointer to an sx1262 handle structure |
Definition at line 3629 of file driver_sx1262.c.
| uint8_t sx1262_clear_irq_status | ( | sx1262_handle_t * | handle, |
| uint16_t | clear_irq_param ) |
clear the irq status
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | clear_irq_param | irq mask |
Definition at line 2341 of file driver_sx1262.c.
| uint8_t sx1262_continuous_receive | ( | sx1262_handle_t * | handle | ) |
enter to the continuous receive mode
| [in] | *handle | pointer to an sx1262 handle structure |
Definition at line 897 of file driver_sx1262.c.
| uint8_t sx1262_deinit | ( | sx1262_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an sx1262 handle structure |
Definition at line 761 of file driver_sx1262.c.
| uint8_t sx1262_frequency_convert_to_data | ( | sx1262_handle_t * | handle, |
| uint32_t | reg, | ||
| uint32_t * | freq ) |
convert the register raw data to the frequency
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | reg | register raw data |
| [out] | *freq | pointer to a frequency buffer |
Definition at line 2510 of file driver_sx1262.c.
| uint8_t sx1262_frequency_convert_to_register | ( | sx1262_handle_t * | handle, |
| uint32_t | freq, | ||
| uint32_t * | reg ) |
convert the frequency to the register raw data
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | freq | frequency |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 2483 of file driver_sx1262.c.
| uint8_t sx1262_get_device_errors | ( | sx1262_handle_t * | handle, |
| uint16_t * | op_error ) |
get the device errors
| [in] | *handle | pointer to an sx1262 handle structure |
| [out] | *op_error | pointer to an op error buffer |
Definition at line 3584 of file driver_sx1262.c.
| uint8_t sx1262_get_gfsk_packet_status | ( | sx1262_handle_t * | handle, |
| uint8_t * | rx_status, | ||
| uint8_t * | rssi_sync_raw, | ||
| uint8_t * | rssi_avg_raw, | ||
| float * | rssi_sync, | ||
| float * | rssi_avg ) |
get the packet status in GFSK mode
| [in] | *handle | pointer to an sx1262 handle structure |
| [out] | *rx_status | pointer to an rx status buffer |
| [out] | *rssi_sync_raw | pointer to an rssi sync raw buffer |
| [out] | *rssi_avg_raw | pointer to an rssi avg raw buffer |
| [out] | *rssi_sync | pointer to an rssi sync buffer |
| [out] | *rssi_avg | pointer to an rssi avg buffer |
Definition at line 3325 of file driver_sx1262.c.
| uint8_t sx1262_get_instantaneous_rssi | ( | sx1262_handle_t * | handle, |
| uint8_t * | rssi_inst_raw, | ||
| float * | rssi_inst ) |
get the instantaneous rssi
| [in] | *handle | pointer to an sx1262 handle structure |
| [out] | *rssi_inst_raw | pointer to an rssi instantaneous raw buffer |
| [out] | *rssi_inst | pointer to an rssi instantaneous buffer |
Definition at line 3434 of file driver_sx1262.c.
| uint8_t sx1262_get_irq_status | ( | sx1262_handle_t * | handle, |
| uint16_t * | status ) |
get the irq status
| [in] | *handle | pointer to an sx1262 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 2295 of file driver_sx1262.c.
| uint8_t sx1262_get_lora_packet_status | ( | sx1262_handle_t * | handle, |
| uint8_t * | rssi_pkt_raw, | ||
| int8_t * | snr_pkt_raw, | ||
| uint8_t * | signal_rssi_pkt_raw, | ||
| float * | rssi_pkt, | ||
| float * | snr_pkt, | ||
| float * | signal_rssi_pkt ) |
get the packet status in LoRa mode
| [in] | *handle | pointer to an sx1262 handle structure |
| [out] | *rssi_pkt_raw | pointer to an rssi packet raw buffer |
| [out] | *snr_pkt_raw | pointer to an snr packet raw buffer |
| [out] | *signal_rssi_pkt_raw | pointer to a signal rssi packet raw buffer |
| [out] | *rssi_pkt | pointer to an rssi packet buffer |
| [out] | *snr_pkt | pointer to an snr packet buffer |
| [out] | *signal_rssi_pkt | pointer to a signal rssi packet buffer |
Definition at line 3381 of file driver_sx1262.c.
| uint8_t sx1262_get_packet_type | ( | sx1262_handle_t * | handle, |
| sx1262_packet_type_t * | type ) |
get the packet type
| [in] | *handle | pointer to an sx1262 handle structure |
| [out] | *type | pointer to a packet type buffer |
Definition at line 2633 of file driver_sx1262.c.
| uint8_t sx1262_get_rx_buffer_status | ( | sx1262_handle_t * | handle, |
| uint8_t * | payload_length_rx, | ||
| uint8_t * | rx_start_buffer_pointer ) |
get the rx buffer status
| [in] | *handle | pointer to an sx1262 handle structure |
| [out] | *payload_length_rx | pointer to an rx payload length buffer |
| [out] | *rx_start_buffer_pointer | pointer to an rx start pointer buffer |
Definition at line 3274 of file driver_sx1262.c.
| uint8_t sx1262_get_stats | ( | sx1262_handle_t * | handle, |
| uint16_t * | pkt_received, | ||
| uint16_t * | pkt_crc_error, | ||
| uint16_t * | pkt_length_header_error ) |
get the stats
| [in] | *handle | pointer to an sx1262 handle structure |
| [out] | *pkt_received | pointer to a packet received counter buffer |
| [out] | *pkt_crc_error | pointer to a packet crc error buffer |
| [out] | *pkt_length_header_error | pointer to a packet length header error buffer |
Definition at line 3483 of file driver_sx1262.c.
| uint8_t sx1262_get_status | ( | sx1262_handle_t * | handle, |
| uint8_t * | status ) |
get the status
| [in] | *handle | pointer to an sx1262 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 3226 of file driver_sx1262.c.
| uint8_t sx1262_gfsk_bit_rate_convert_to_data | ( | sx1262_handle_t * | handle, |
| uint32_t | reg, | ||
| uint32_t * | br ) |
convert the register raw data to the bit rate
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | reg | register raw data |
| [out] | *br | pointer to a bit rate buffer |
Definition at line 2810 of file driver_sx1262.c.
| uint8_t sx1262_gfsk_bit_rate_convert_to_register | ( | sx1262_handle_t * | handle, |
| uint32_t | br, | ||
| uint32_t * | reg ) |
convert the bit rate to the register raw data
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | br | bit rate |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 2783 of file driver_sx1262.c.
| uint8_t sx1262_gfsk_frequency_deviation_convert_to_data | ( | sx1262_handle_t * | handle, |
| uint32_t | reg, | ||
| uint32_t * | freq ) |
convert the register raw data to the frequency deviation
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | reg | register raw data |
| [out] | *freq | pointer to a frequency deviation buffer |
Definition at line 2864 of file driver_sx1262.c.
| uint8_t sx1262_gfsk_frequency_deviation_convert_to_register | ( | sx1262_handle_t * | handle, |
| uint32_t | freq, | ||
| uint32_t * | reg ) |
convert the frequency deviation to the register raw data
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | freq | frequency deviation |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 2837 of file driver_sx1262.c.
| uint8_t sx1262_info | ( | sx1262_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to an sx1262 info structure |
Definition at line 6266 of file driver_sx1262.c.
| uint8_t sx1262_init | ( | sx1262_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an sx1262 handle structure |
Definition at line 590 of file driver_sx1262.c.
| uint8_t sx1262_irq_handler | ( | sx1262_handle_t * | handle | ) |
irq handler
| [in] | *handle | pointer to an sx1262 handle structure |
Definition at line 407 of file driver_sx1262.c.
| uint8_t sx1262_lora_cad | ( | sx1262_handle_t * | handle, |
| sx1262_bool_t * | enable ) |
run the cad
| [in] | *handle | pointer to an sx1262 handle structure |
| [out] | *enable | pointer to an enable buffer |
Definition at line 966 of file driver_sx1262.c.
| uint8_t sx1262_lora_transmit | ( | sx1262_handle_t * | handle, |
| sx1262_clock_source_t | standby_src, | ||
| uint16_t | preamble_length, | ||
| sx1262_lora_header_t | header_type, | ||
| sx1262_lora_crc_type_t | crc_type, | ||
| sx1262_bool_t | invert_iq_enable, | ||
| uint8_t * | buf, | ||
| uint16_t | len, | ||
| uint32_t | us ) |
send the lora data
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | standby_src | clock source |
| [in] | preamble_length | preamble length |
| [in] | header_type | header type |
| [in] | crc_type | crc type |
| [in] | invert_iq_enable | bool value |
| [in] | *buf | pointer to a data buffer |
| [in] | len | data length |
| [in] | us | timeout |
Definition at line 1091 of file driver_sx1262.c.
| uint8_t sx1262_read_buffer | ( | sx1262_handle_t * | handle, |
| uint8_t | offset, | ||
| uint8_t * | buf, | ||
| uint16_t | len ) |
read the buffer
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | offset | buffer offset |
| [out] | *buf | pointer to a data buffer |
| [in] | len | data length |
Definition at line 1444 of file driver_sx1262.c.
| uint8_t sx1262_read_register | ( | sx1262_handle_t * | handle, |
| uint16_t | reg, | ||
| uint8_t * | buf, | ||
| uint16_t | len ) |
read the register
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | reg | register address |
| [out] | *buf | pointer to a data buffer |
| [in] | len | data length |
Definition at line 1354 of file driver_sx1262.c.
| uint8_t sx1262_reset_stats | ( | sx1262_handle_t * | handle, |
| uint16_t | pkt_received, | ||
| uint16_t | pkt_crc_error, | ||
| uint16_t | pkt_length_header_error ) |
reset the stats
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | pkt_received | received packet counter mask |
| [in] | pkt_crc_error | packet crc error mask |
| [in] | pkt_length_header_error | packet length header error mask |
Definition at line 3533 of file driver_sx1262.c.
| uint8_t sx1262_set_buffer_base_address | ( | sx1262_handle_t * | handle, |
| uint8_t | tx_base_addr, | ||
| uint8_t | rx_base_addr ) |
set the buffer base address
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | tx_base_addr | tx base address |
| [in] | rx_base_addr | rx base address |
Definition at line 3133 of file driver_sx1262.c.
| uint8_t sx1262_set_cad | ( | sx1262_handle_t * | handle | ) |
run the cad
| [in] | *handle | pointer to an sx1262 handle structure |
Definition at line 1871 of file driver_sx1262.c.
| uint8_t sx1262_set_cad_params | ( | sx1262_handle_t * | handle, |
| sx1262_lora_cad_symbol_num_t | num, | ||
| uint8_t | cad_det_peak, | ||
| uint8_t | cad_det_min, | ||
| sx1262_lora_cad_exit_mode_t | mode, | ||
| uint32_t | timeout ) |
set the cad params
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | num | cad symbol number |
| [in] | cad_det_peak | cad detection peak |
| [in] | cad_det_min | min cad detection peak |
| [in] | mode | cad exit mode |
| [in] | timeout | cad timeout |
Definition at line 3078 of file driver_sx1262.c.
| uint8_t sx1262_set_calibration | ( | sx1262_handle_t * | handle, |
| uint8_t | settings ) |
set the calibration settings
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | settings | calibration param |
Definition at line 2047 of file driver_sx1262.c.
| uint8_t sx1262_set_calibration_image | ( | sx1262_handle_t * | handle, |
| uint8_t | freq1, | ||
| uint8_t | freq2 ) |
set the calibration image frequency
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | freq1 | image frequency 1 |
| [in] | freq2 | image frequency 2 |
Definition at line 2094 of file driver_sx1262.c.
| uint8_t sx1262_set_dio2_as_rf_switch_ctrl | ( | sx1262_handle_t * | handle, |
| sx1262_bool_t | enable ) |
set dio2 as rf switch ctrl
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | enable | bool value |
Definition at line 2388 of file driver_sx1262.c.
| uint8_t sx1262_set_dio3_as_tcxo_ctrl | ( | sx1262_handle_t * | handle, |
| sx1262_tcxo_voltage_t | voltage, | ||
| uint32_t | delay ) |
set dio3 as tcxo ctrl
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | voltage | tcxo voltage |
| [in] | delay | tcxo ctrl delay |
Definition at line 2435 of file driver_sx1262.c.
| uint8_t sx1262_set_dio_irq_params | ( | sx1262_handle_t * | handle, |
| uint16_t | irq_mask, | ||
| uint16_t | dio1_mask, | ||
| uint16_t | dio2_mask, | ||
| uint16_t | dio3_mask ) |
set the dio irq params
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | irq_mask | irq mask |
| [in] | dio1_mask | dio1 mask |
| [in] | dio2_mask | dio2 mask |
| [in] | dio3_mask | dio3 mask |
Definition at line 2240 of file driver_sx1262.c.
| uint8_t sx1262_set_frequency_synthesis | ( | sx1262_handle_t * | handle | ) |
enter to the frequency synthesis mode
| [in] | *handle | pointer to an sx1262 handle structure |
Definition at line 1579 of file driver_sx1262.c.
| uint8_t sx1262_set_gfsk_modulation_params | ( | sx1262_handle_t * | handle, |
| uint32_t | br, | ||
| sx1262_gfsk_pulse_shape_t | shape, | ||
| sx1262_gfsk_bandwidth_t | bw, | ||
| uint32_t | fdev ) |
set the modulation params in GFSK mode
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | br | bit rate |
| [in] | shape | pulse shape |
| [in] | bw | bandwidth |
| [in] | fdev | frequency deviation |
Definition at line 2730 of file driver_sx1262.c.
| uint8_t sx1262_set_gfsk_packet_params | ( | sx1262_handle_t * | handle, |
| uint16_t | preamble_length, | ||
| sx1262_gfsk_preamble_detector_length_t | detector_length, | ||
| uint8_t | sync_word_length, | ||
| sx1262_gfsk_addr_filter_t | filter, | ||
| sx1262_gfsk_packet_type_t | packet_type, | ||
| uint8_t | payload_length, | ||
| sx1262_gfsk_crc_type_t | crc_type, | ||
| sx1262_bool_t | whitening_enable ) |
set the packet params in GFSK mode
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | preamble_length | preamble length |
| [in] | detector_length | preamble detector length |
| [in] | sync_word_length | sync word length |
| [in] | filter | address filter |
| [in] | packet_type | packet type |
| [in] | payload_length | length of the payload |
| [in] | crc_type | crc type |
| [in] | whitening_enable | bool value |
Definition at line 2953 of file driver_sx1262.c.
| uint8_t sx1262_set_lora_modulation_params | ( | sx1262_handle_t * | handle, |
| sx1262_lora_sf_t | sf, | ||
| sx1262_lora_bandwidth_t | bw, | ||
| sx1262_lora_cr_t | cr, | ||
| sx1262_bool_t | low_data_rate_optimize_enable ) |
set the modulation params in LoRa mode
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | sf | spreading factor |
| [in] | bw | bandwidth |
| [in] | cr | coding rate |
| [in] | low_data_rate_optimize_enable | bool value |
Definition at line 2895 of file driver_sx1262.c.
| uint8_t sx1262_set_lora_packet_params | ( | sx1262_handle_t * | handle, |
| uint16_t | preamble_length, | ||
| sx1262_lora_header_t | header_type, | ||
| uint8_t | payload_length, | ||
| sx1262_lora_crc_type_t | crc_type, | ||
| sx1262_bool_t | invert_iq_enable ) |
set the packet params in LoRa mode
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | preamble_length | preamble length |
| [in] | header_type | header type |
| [in] | payload_length | length of payload |
| [in] | crc_type | crc type |
| [in] | invert_iq_enable | bool value |
Definition at line 3021 of file driver_sx1262.c.
| uint8_t sx1262_set_lora_symb_num_timeout | ( | sx1262_handle_t * | handle, |
| uint8_t | symb_num ) |
set the lora symbol number timeout
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | symb_num | symbol number |
Definition at line 3180 of file driver_sx1262.c.
| uint8_t sx1262_set_pa_config | ( | sx1262_handle_t * | handle, |
| uint8_t | pa_duty_cycle, | ||
| uint8_t | hp_max ) |
set the pa config
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | pa_duty_cycle | pa duty cycle |
| [in] | hp_max | max power |
Definition at line 2142 of file driver_sx1262.c.
| uint8_t sx1262_set_packet_type | ( | sx1262_handle_t * | handle, |
| sx1262_packet_type_t | type ) |
set the packet type
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | type | packet type |
Definition at line 2587 of file driver_sx1262.c.
| uint8_t sx1262_set_regulator_mode | ( | sx1262_handle_t * | handle, |
| sx1262_regulator_mode_t | mode ) |
set the regulator_mode
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | mode | regulator mode |
Definition at line 2001 of file driver_sx1262.c.
| uint8_t sx1262_set_rf_frequency | ( | sx1262_handle_t * | handle, |
| uint32_t | reg ) |
set the rf frequency
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | reg | rf frequency register data |
Definition at line 2538 of file driver_sx1262.c.
| uint8_t sx1262_set_rx | ( | sx1262_handle_t * | handle, |
| uint32_t | timeout ) |
enter to the rx mode
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | timeout | rx timeout |
Definition at line 1672 of file driver_sx1262.c.
| uint8_t sx1262_set_rx_duty_cycle | ( | sx1262_handle_t * | handle, |
| uint32_t | rx_period, | ||
| uint32_t | sleep_period ) |
set the rx duty cycle
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | rx_period | rx period |
| [in] | sleep_period | sleep period |
Definition at line 1821 of file driver_sx1262.c.
| uint8_t sx1262_set_rx_tx_fallback_mode | ( | sx1262_handle_t * | handle, |
| sx1262_rx_tx_fallback_mode_t | mode ) |
set the rx tx fallback mode
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | mode | rx tx fallback mode |
Definition at line 2191 of file driver_sx1262.c.
| uint8_t sx1262_set_sleep | ( | sx1262_handle_t * | handle, |
| sx1262_start_mode_t | mode, | ||
| sx1262_bool_t | rtc_wake_up_enable ) |
enter to the sleep mode
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | mode | start mode |
| [in] | rtc_wake_up_enable | bool value |
Definition at line 1488 of file driver_sx1262.c.
| uint8_t sx1262_set_standby | ( | sx1262_handle_t * | handle, |
| sx1262_clock_source_t | src ) |
enter to the standby mode
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | src | clock source |
Definition at line 1534 of file driver_sx1262.c.
| uint8_t sx1262_set_stop_timer_on_preamble | ( | sx1262_handle_t * | handle, |
| sx1262_bool_t | enable ) |
stop timer on preamble
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | enable | bool value |
Definition at line 1774 of file driver_sx1262.c.
| uint8_t sx1262_set_tx | ( | sx1262_handle_t * | handle, |
| uint32_t | timeout ) |
enter to the tx mode
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | timeout | tx timeout |
Definition at line 1623 of file driver_sx1262.c.
| uint8_t sx1262_set_tx_continuous_wave | ( | sx1262_handle_t * | handle | ) |
enter to the tx continuous wave mode
| [in] | *handle | pointer to an sx1262 handle structure |
Definition at line 1914 of file driver_sx1262.c.
| uint8_t sx1262_set_tx_infinite_preamble | ( | sx1262_handle_t * | handle | ) |
enter to the tx infinite preamble mode
| [in] | *handle | pointer to an sx1262 handle structure |
Definition at line 1957 of file driver_sx1262.c.
| uint8_t sx1262_set_tx_params | ( | sx1262_handle_t * | handle, |
| int8_t | dbm, | ||
| sx1262_ramp_time_t | t ) |
set the tx params
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | dbm | rf power |
| [in] | t | ramp time |
Definition at line 2680 of file driver_sx1262.c.
| uint8_t sx1262_single_receive | ( | sx1262_handle_t * | handle, |
| double | us ) |
enter to the single receive mode
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | us | rx timeout |
Definition at line 828 of file driver_sx1262.c.
| uint8_t sx1262_timeout_convert_to_data | ( | sx1262_handle_t * | handle, |
| uint32_t | reg, | ||
| double * | us ) |
convert the register raw data to the timeout
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | reg | register raw data |
| [out] | *us | pointer to a us buffer |
Definition at line 1746 of file driver_sx1262.c.
| uint8_t sx1262_timeout_convert_to_register | ( | sx1262_handle_t * | handle, |
| double | us, | ||
| uint32_t * | reg ) |
convert the timeout to the register raw data
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | us | timeout |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 1719 of file driver_sx1262.c.
| uint8_t sx1262_write_buffer | ( | sx1262_handle_t * | handle, |
| uint8_t | offset, | ||
| uint8_t * | buf, | ||
| uint16_t | len ) |
write the buffer
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | offset | buffer offset |
| [in] | *buf | pointer to a data buffer |
| [in] | len | data length |
Definition at line 1399 of file driver_sx1262.c.
| uint8_t sx1262_write_register | ( | sx1262_handle_t * | handle, |
| uint16_t | reg, | ||
| uint8_t * | buf, | ||
| uint16_t | len ) |
write the register
| [in] | *handle | pointer to an sx1262 handle structure |
| [in] | reg | register address |
| [in] | *buf | pointer to a data buffer |
| [in] | len | data length |
Definition at line 1309 of file driver_sx1262.c.