![]() |
LibDriver LLCC68
1.0.0
LLCC68 full-featured driver
|
llcc68 command driver modules More...
Data Structures | |
struct | llcc68_handle_s |
llcc68 handle structure definition More... | |
struct | llcc68_info_s |
llcc68 information structure definition More... | |
Typedefs | |
typedef struct llcc68_handle_s | llcc68_handle_t |
llcc68 handle structure definition More... | |
typedef struct llcc68_info_s | llcc68_info_t |
llcc68 information structure definition More... | |
Functions | |
uint8_t | llcc68_info (llcc68_info_t *info) |
get chip's information More... | |
uint8_t | llcc68_irq_handler (llcc68_handle_t *handle) |
irq handler More... | |
uint8_t | llcc68_init (llcc68_handle_t *handle) |
initialize the chip More... | |
uint8_t | llcc68_deinit (llcc68_handle_t *handle) |
close the chip More... | |
uint8_t | llcc68_lora_transmit (llcc68_handle_t *handle, llcc68_clock_source_t standby_src, uint16_t preamble_length, llcc68_lora_header_t header_type, llcc68_lora_crc_type_t crc_type, llcc68_bool_t invert_iq_enable, uint8_t *buf, uint16_t len, uint32_t us) |
send the lora data More... | |
uint8_t | llcc68_lora_cad (llcc68_handle_t *handle, llcc68_bool_t *enable) |
run the cad More... | |
uint8_t | llcc68_single_receive (llcc68_handle_t *handle, double us) |
enter to the single receive mode More... | |
uint8_t | llcc68_continuous_receive (llcc68_handle_t *handle) |
enter to the continuous receive mode More... | |
uint8_t | llcc68_write_register (llcc68_handle_t *handle, uint16_t reg, uint8_t *buf, uint16_t len) |
write the register More... | |
uint8_t | llcc68_read_register (llcc68_handle_t *handle, uint16_t reg, uint8_t *buf, uint16_t len) |
read the register More... | |
uint8_t | llcc68_write_buffer (llcc68_handle_t *handle, uint8_t offset, uint8_t *buf, uint16_t len) |
write the buffer More... | |
uint8_t | llcc68_read_buffer (llcc68_handle_t *handle, uint8_t offset, uint8_t *buf, uint16_t len) |
read the buffer More... | |
uint8_t | llcc68_check_packet_error (llcc68_handle_t *handle, llcc68_bool_t *enable) |
check the packet error More... | |
uint8_t | llcc68_set_sleep (llcc68_handle_t *handle, llcc68_start_mode_t mode, llcc68_bool_t rtc_wake_up_enable) |
enter to the sleep mode More... | |
uint8_t | llcc68_set_standby (llcc68_handle_t *handle, llcc68_clock_source_t src) |
enter to the standby mode More... | |
uint8_t | llcc68_set_frequency_synthesis (llcc68_handle_t *handle) |
enter to the frequency synthesis mode More... | |
uint8_t | llcc68_set_tx (llcc68_handle_t *handle, uint32_t timeout) |
enter to the tx mode More... | |
uint8_t | llcc68_set_rx (llcc68_handle_t *handle, uint32_t timeout) |
enter to the rx mode More... | |
uint8_t | llcc68_timeout_convert_to_register (llcc68_handle_t *handle, double us, uint32_t *reg) |
convert the timeout to the register raw data More... | |
uint8_t | llcc68_timeout_convert_to_data (llcc68_handle_t *handle, uint32_t reg, double *us) |
convert the register raw data to the timeout More... | |
uint8_t | llcc68_set_stop_timer_on_preamble (llcc68_handle_t *handle, llcc68_bool_t enable) |
stop timer on preamble More... | |
uint8_t | llcc68_set_rx_duty_cycle (llcc68_handle_t *handle, uint32_t rx_period, uint32_t sleep_period) |
set the rx duty cycle More... | |
uint8_t | llcc68_set_cad (llcc68_handle_t *handle) |
run the cad More... | |
uint8_t | llcc68_set_tx_continuous_wave (llcc68_handle_t *handle) |
enter to the tx continuous wave mode More... | |
uint8_t | llcc68_set_tx_infinite_preamble (llcc68_handle_t *handle) |
enter to the tx infinite preamble mode More... | |
uint8_t | llcc68_set_regulator_mode (llcc68_handle_t *handle, llcc68_regulator_mode_t mode) |
set the regulator_mode More... | |
uint8_t | llcc68_set_calibration (llcc68_handle_t *handle, uint8_t settings) |
set the calibration settings More... | |
uint8_t | llcc68_set_calibration_image (llcc68_handle_t *handle, uint8_t freq1, uint8_t freq2) |
set the calibration image frequency More... | |
uint8_t | llcc68_set_pa_config (llcc68_handle_t *handle, uint8_t pa_duty_cycle, uint8_t hp_max) |
set the pa config More... | |
uint8_t | llcc68_set_rx_tx_fallback_mode (llcc68_handle_t *handle, llcc68_rx_tx_fallback_mode_t mode) |
set the rx tx fallback mode More... | |
uint8_t | llcc68_set_dio_irq_params (llcc68_handle_t *handle, uint16_t irq_mask, uint16_t dio1_mask, uint16_t dio2_mask, uint16_t dio3_mask) |
set the dio irq params More... | |
uint8_t | llcc68_get_irq_status (llcc68_handle_t *handle, uint16_t *status) |
get the irq status More... | |
uint8_t | llcc68_clear_irq_status (llcc68_handle_t *handle, uint16_t clear_irq_param) |
clear the irq status More... | |
uint8_t | llcc68_set_dio2_as_rf_switch_ctrl (llcc68_handle_t *handle, llcc68_bool_t enable) |
set dio2 as rf switch ctrl More... | |
uint8_t | llcc68_set_dio3_as_tcxo_ctrl (llcc68_handle_t *handle, llcc68_tcxo_voltage_t voltage, uint32_t delay) |
set dio3 as tcxo ctrl More... | |
uint8_t | llcc68_frequency_convert_to_register (llcc68_handle_t *handle, uint32_t freq, uint32_t *reg) |
convert the frequency to the register raw data More... | |
uint8_t | llcc68_frequency_convert_to_data (llcc68_handle_t *handle, uint32_t reg, uint32_t *freq) |
convert the register raw data to the frequency More... | |
uint8_t | llcc68_set_rf_frequency (llcc68_handle_t *handle, uint32_t reg) |
set the rf frequency More... | |
uint8_t | llcc68_set_packet_type (llcc68_handle_t *handle, llcc68_packet_type_t type) |
set the packet type More... | |
uint8_t | llcc68_get_packet_type (llcc68_handle_t *handle, llcc68_packet_type_t *type) |
get the packet type More... | |
uint8_t | llcc68_set_tx_params (llcc68_handle_t *handle, int8_t dbm, llcc68_ramp_time_t t) |
set the tx params More... | |
uint8_t | llcc68_set_gfsk_modulation_params (llcc68_handle_t *handle, uint32_t br, llcc68_gfsk_pulse_shape_t shape, llcc68_gfsk_bandwidth_t bw, uint32_t fdev) |
set the modulation params in GFSK mode More... | |
uint8_t | llcc68_gfsk_bit_rate_convert_to_register (llcc68_handle_t *handle, uint32_t br, uint32_t *reg) |
convert the bit rate to the register raw data More... | |
uint8_t | llcc68_gfsk_bit_rate_convert_to_data (llcc68_handle_t *handle, uint32_t reg, uint32_t *br) |
convert the register raw data to the bit rate More... | |
uint8_t | llcc68_gfsk_frequency_deviation_convert_to_register (llcc68_handle_t *handle, uint32_t freq, uint32_t *reg) |
convert the frequency deviation to the register raw data More... | |
uint8_t | llcc68_gfsk_frequency_deviation_convert_to_data (llcc68_handle_t *handle, uint32_t reg, uint32_t *freq) |
convert the register raw data to the frequency deviation More... | |
uint8_t | llcc68_set_lora_modulation_params (llcc68_handle_t *handle, llcc68_lora_sf_t sf, llcc68_lora_bandwidth_t bw, llcc68_lora_cr_t cr, llcc68_bool_t low_data_rate_optimize_enable) |
set the modulation params in LoRa mode More... | |
uint8_t | llcc68_set_gfsk_packet_params (llcc68_handle_t *handle, uint16_t preamble_length, llcc68_gfsk_preamble_detector_length_t detector_length, uint8_t sync_word_length, llcc68_gfsk_addr_filter_t filter, llcc68_gfsk_packet_type_t packet_type, uint8_t payload_length, llcc68_gfsk_crc_type_t crc_type, llcc68_bool_t whitening_enable) |
set the packet params in GFSK mode More... | |
uint8_t | llcc68_set_lora_packet_params (llcc68_handle_t *handle, uint16_t preamble_length, llcc68_lora_header_t header_type, uint8_t payload_length, llcc68_lora_crc_type_t crc_type, llcc68_bool_t invert_iq_enable) |
set the packet params in LoRa mode More... | |
uint8_t | llcc68_set_cad_params (llcc68_handle_t *handle, llcc68_lora_cad_symbol_num_t num, uint8_t cad_det_peak, uint8_t cad_det_min, llcc68_lora_cad_exit_mode_t mode, uint32_t timeout) |
set the cad params More... | |
uint8_t | llcc68_set_buffer_base_address (llcc68_handle_t *handle, uint8_t tx_base_addr, uint8_t rx_base_addr) |
set the buffer base address More... | |
uint8_t | llcc68_set_lora_symb_num_timeout (llcc68_handle_t *handle, uint8_t symb_num) |
set the lora symbol number timeout More... | |
uint8_t | llcc68_get_status (llcc68_handle_t *handle, uint8_t *status) |
get the status More... | |
uint8_t | llcc68_get_rx_buffer_status (llcc68_handle_t *handle, uint8_t *payload_length_rx, uint8_t *rx_start_buffer_pointer) |
get the rx buffer status More... | |
uint8_t | llcc68_get_gfsk_packet_status (llcc68_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 More... | |
uint8_t | llcc68_get_lora_packet_status (llcc68_handle_t *handle, uint8_t *rssi_pkt_raw, uint8_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 More... | |
uint8_t | llcc68_get_instantaneous_rssi (llcc68_handle_t *handle, uint8_t *rssi_inst_raw, float *rssi_inst) |
get the instantaneous rssi More... | |
uint8_t | llcc68_get_stats (llcc68_handle_t *handle, uint16_t *pkt_received, uint16_t *pkt_crc_error, uint16_t *pkt_length_header_error) |
get the stats More... | |
uint8_t | llcc68_reset_stats (llcc68_handle_t *handle, uint16_t pkt_received, uint16_t pkt_crc_error, uint16_t pkt_length_header_error) |
reset the stats More... | |
uint8_t | llcc68_get_device_errors (llcc68_handle_t *handle, uint16_t *op_error) |
get the device errors More... | |
uint8_t | llcc68_clear_device_errors (llcc68_handle_t *handle) |
clear the device errors More... | |
llcc68 command driver modules
typedef struct llcc68_handle_s llcc68_handle_t |
llcc68 handle structure definition
typedef struct llcc68_info_s llcc68_info_t |
llcc68 information structure definition
enum llcc68_bool_t |
llcc68 bool enumeration definition
Enumerator | |
---|---|
LLCC68_BOOL_FALSE | disable function |
LLCC68_BOOL_TRUE | enable function |
Definition at line 62 of file driver_llcc68.h.
enum llcc68_calibration_t |
llcc68 calibration enumeration definition
Definition at line 98 of file driver_llcc68.h.
llcc68 clock source enumeration definition
Enumerator | |
---|---|
LLCC68_CLOCK_SOURCE_RC_13M | rc 13MHz |
LLCC68_CLOCK_SOURCE_XTAL_32MHZ | xtal 32MHz |
Definition at line 80 of file driver_llcc68.h.
llcc68 fsk rx status enumeration definition
Definition at line 340 of file driver_llcc68.h.
llcc68 gfsk addr filter enumeration definition
Definition at line 265 of file driver_llcc68.h.
llcc68 gfsk bandwidth enumeration definition
Definition at line 190 of file driver_llcc68.h.
llcc68 gfsk crc type enumeration definition
Definition at line 286 of file driver_llcc68.h.
llcc68 gfsk packet type enumeration definition
Definition at line 275 of file driver_llcc68.h.
llcc68 gfsk preamble detector length enumeration definition
Definition at line 253 of file driver_llcc68.h.
llcc68 gfsk pulse shape enumeration definition
Definition at line 178 of file driver_llcc68.h.
enum llcc68_irq_t |
llcc68 irq enumeration definition
Definition at line 112 of file driver_llcc68.h.
llcc68 lora bandwidth enumeration definition
Enumerator | |
---|---|
LLCC68_LORA_BANDWIDTH_125_KHZ | 125 kHz |
LLCC68_LORA_BANDWIDTH_250_KHZ | 250 kHz |
LLCC68_LORA_BANDWIDTH_500_KHZ | 500 kHz |
Definition at line 232 of file driver_llcc68.h.
llcc68 lora cad exit mode enumeration definition
Definition at line 328 of file driver_llcc68.h.
llcc68 lora cad symbol num enumeration definition
Definition at line 316 of file driver_llcc68.h.
enum llcc68_lora_cr_t |
llcc68 lora coding rate enumeration definition
Enumerator | |
---|---|
LLCC68_LORA_CR_4_5 | cr 4/5 |
LLCC68_LORA_CR_4_6 | cr 4/6 |
LLCC68_LORA_CR_4_7 | cr 4/7 |
LLCC68_LORA_CR_4_8 | cr 4/8 |
Definition at line 242 of file driver_llcc68.h.
llcc68 lora crc type enumeration definition
Enumerator | |
---|---|
LLCC68_LORA_CRC_TYPE_OFF | crc off |
LLCC68_LORA_CRC_TYPE_ON | crc on |
Definition at line 307 of file driver_llcc68.h.
enum llcc68_lora_header_t |
llcc68 lora header enumeration definition
Enumerator | |
---|---|
LLCC68_LORA_HEADER_EXPLICIT | explicit header |
LLCC68_LORA_HEADER_IMPLICIT | implicit header |
Definition at line 298 of file driver_llcc68.h.
enum llcc68_lora_sf_t |
llcc68 lora spreading factor enumeration definition
Definition at line 218 of file driver_llcc68.h.
enum llcc68_op_error_t |
llcc68 op error enumeration definition
Definition at line 355 of file driver_llcc68.h.
enum llcc68_packet_type_t |
llcc68 packet type enumeration definition
Enumerator | |
---|---|
LLCC68_PACKET_TYPE_GFSK | gfsk mode |
LLCC68_PACKET_TYPE_LORA | lora mode |
Definition at line 154 of file driver_llcc68.h.
enum llcc68_ramp_time_t |
llcc68 ramp time enumeration definition
Definition at line 163 of file driver_llcc68.h.
llcc68 regulator mode enumeration definition
Enumerator | |
---|---|
LLCC68_REGULATOR_MODE_ONLY_LDO | only ldo used for all modes |
LLCC68_REGULATOR_MODE_DC_DC_LDO | dc_dc + ldo used for standby_xosc, fs, rx and rx modes |
Definition at line 89 of file driver_llcc68.h.
llcc68 rx tx fallback mode enumeration definition
Definition at line 129 of file driver_llcc68.h.
enum llcc68_start_mode_t |
llcc68 start mode enumeration definition
Enumerator | |
---|---|
LLCC68_START_MODE_COLD | cold start mode |
LLCC68_START_MODE_WARM | warm start mode |
Definition at line 71 of file driver_llcc68.h.
llcc68 tcxo voltage enumeration definition
Definition at line 139 of file driver_llcc68.h.
uint8_t llcc68_check_packet_error | ( | llcc68_handle_t * | handle, |
llcc68_bool_t * | enable | ||
) |
check the packet error
[in] | *handle | pointer to an llcc68 handle structure |
[out] | *enable | pointer to a bool buffer |
Definition at line 1046 of file driver_llcc68.c.
uint8_t llcc68_clear_device_errors | ( | llcc68_handle_t * | handle | ) |
clear the device errors
[in] | *handle | pointer to an llcc68 handle structure |
Definition at line 3622 of file driver_llcc68.c.
uint8_t llcc68_clear_irq_status | ( | llcc68_handle_t * | handle, |
uint16_t | clear_irq_param | ||
) |
clear the irq status
[in] | *handle | pointer to an llcc68 handle structure |
[in] | clear_irq_param | irq mask |
Definition at line 2334 of file driver_llcc68.c.
uint8_t llcc68_continuous_receive | ( | llcc68_handle_t * | handle | ) |
enter to the continuous receive mode
[in] | *handle | pointer to an llcc68 handle structure |
Definition at line 890 of file driver_llcc68.c.
uint8_t llcc68_deinit | ( | llcc68_handle_t * | handle | ) |
close the chip
[in] | *handle | pointer to an llcc68 handle structure |
Definition at line 754 of file driver_llcc68.c.
uint8_t llcc68_frequency_convert_to_data | ( | llcc68_handle_t * | handle, |
uint32_t | reg, | ||
uint32_t * | freq | ||
) |
convert the register raw data to the frequency
[in] | *handle | pointer to an llcc68 handle structure |
[in] | reg | register raw data |
[out] | *freq | pointer to a frequency buffer |
Definition at line 2503 of file driver_llcc68.c.
uint8_t llcc68_frequency_convert_to_register | ( | llcc68_handle_t * | handle, |
uint32_t | freq, | ||
uint32_t * | reg | ||
) |
convert the frequency to the register raw data
[in] | *handle | pointer to an llcc68 handle structure |
[in] | freq | frequency |
[out] | *reg | pointer to a register raw buffer |
Definition at line 2476 of file driver_llcc68.c.
uint8_t llcc68_get_device_errors | ( | llcc68_handle_t * | handle, |
uint16_t * | op_error | ||
) |
get the device errors
[in] | *handle | pointer to an llcc68 handle structure |
[out] | *op_error | pointer to an op error buffer |
Definition at line 3577 of file driver_llcc68.c.
uint8_t llcc68_get_gfsk_packet_status | ( | llcc68_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 llcc68 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 3318 of file driver_llcc68.c.
uint8_t llcc68_get_instantaneous_rssi | ( | llcc68_handle_t * | handle, |
uint8_t * | rssi_inst_raw, | ||
float * | rssi_inst | ||
) |
get the instantaneous rssi
[in] | *handle | pointer to an llcc68 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 3427 of file driver_llcc68.c.
uint8_t llcc68_get_irq_status | ( | llcc68_handle_t * | handle, |
uint16_t * | status | ||
) |
get the irq status
[in] | *handle | pointer to an llcc68 handle structure |
[out] | *status | pointer to a status buffer |
Definition at line 2288 of file driver_llcc68.c.
uint8_t llcc68_get_lora_packet_status | ( | llcc68_handle_t * | handle, |
uint8_t * | rssi_pkt_raw, | ||
uint8_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 llcc68 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 3374 of file driver_llcc68.c.
uint8_t llcc68_get_packet_type | ( | llcc68_handle_t * | handle, |
llcc68_packet_type_t * | type | ||
) |
get the packet type
[in] | *handle | pointer to an llcc68 handle structure |
[out] | *type | pointer to a packet type buffer |
Definition at line 2626 of file driver_llcc68.c.
uint8_t llcc68_get_rx_buffer_status | ( | llcc68_handle_t * | handle, |
uint8_t * | payload_length_rx, | ||
uint8_t * | rx_start_buffer_pointer | ||
) |
get the rx buffer status
[in] | *handle | pointer to an llcc68 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 3267 of file driver_llcc68.c.
uint8_t llcc68_get_stats | ( | llcc68_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 llcc68 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 3476 of file driver_llcc68.c.
uint8_t llcc68_get_status | ( | llcc68_handle_t * | handle, |
uint8_t * | status | ||
) |
get the status
[in] | *handle | pointer to an llcc68 handle structure |
[out] | *status | pointer to a status buffer |
Definition at line 3219 of file driver_llcc68.c.
uint8_t llcc68_gfsk_bit_rate_convert_to_data | ( | llcc68_handle_t * | handle, |
uint32_t | reg, | ||
uint32_t * | br | ||
) |
convert the register raw data to the bit rate
[in] | *handle | pointer to an llcc68 handle structure |
[in] | reg | register raw data |
[out] | *br | pointer to a bit rate buffer |
Definition at line 2803 of file driver_llcc68.c.
uint8_t llcc68_gfsk_bit_rate_convert_to_register | ( | llcc68_handle_t * | handle, |
uint32_t | br, | ||
uint32_t * | reg | ||
) |
convert the bit rate to the register raw data
[in] | *handle | pointer to an llcc68 handle structure |
[in] | br | bit rate |
[out] | *reg | pointer to a register raw buffer |
Definition at line 2776 of file driver_llcc68.c.
uint8_t llcc68_gfsk_frequency_deviation_convert_to_data | ( | llcc68_handle_t * | handle, |
uint32_t | reg, | ||
uint32_t * | freq | ||
) |
convert the register raw data to the frequency deviation
[in] | *handle | pointer to an llcc68 handle structure |
[in] | reg | register raw data |
[out] | *freq | pointer to a frequency deviation buffer |
Definition at line 2857 of file driver_llcc68.c.
uint8_t llcc68_gfsk_frequency_deviation_convert_to_register | ( | llcc68_handle_t * | handle, |
uint32_t | freq, | ||
uint32_t * | reg | ||
) |
convert the frequency deviation to the register raw data
[in] | *handle | pointer to an llcc68 handle structure |
[in] | freq | frequency deviation |
[out] | *reg | pointer to a register raw buffer |
Definition at line 2830 of file driver_llcc68.c.
uint8_t llcc68_info | ( | llcc68_info_t * | info | ) |
get chip's information
[out] | *info | pointer to an llcc68 info structure |
Definition at line 5617 of file driver_llcc68.c.
uint8_t llcc68_init | ( | llcc68_handle_t * | handle | ) |
initialize the chip
[in] | *handle | pointer to an llcc68 handle structure |
Definition at line 583 of file driver_llcc68.c.
uint8_t llcc68_irq_handler | ( | llcc68_handle_t * | handle | ) |
irq handler
[in] | *handle | pointer to an llcc68 handle structure |
Definition at line 400 of file driver_llcc68.c.
uint8_t llcc68_lora_cad | ( | llcc68_handle_t * | handle, |
llcc68_bool_t * | enable | ||
) |
run the cad
[in] | *handle | pointer to an llcc68 handle structure |
[out] | *enable | pointer to an enable buffer |
Definition at line 959 of file driver_llcc68.c.
uint8_t llcc68_lora_transmit | ( | llcc68_handle_t * | handle, |
llcc68_clock_source_t | standby_src, | ||
uint16_t | preamble_length, | ||
llcc68_lora_header_t | header_type, | ||
llcc68_lora_crc_type_t | crc_type, | ||
llcc68_bool_t | invert_iq_enable, | ||
uint8_t * | buf, | ||
uint16_t | len, | ||
uint32_t | us | ||
) |
send the lora data
[in] | *handle | pointer to an llcc68 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 1084 of file driver_llcc68.c.
uint8_t llcc68_read_buffer | ( | llcc68_handle_t * | handle, |
uint8_t | offset, | ||
uint8_t * | buf, | ||
uint16_t | len | ||
) |
read the buffer
[in] | *handle | pointer to an llcc68 handle structure |
[in] | offset | buffer offset |
[out] | *buf | pointer to a data buffer |
[in] | len | data length |
Definition at line 1437 of file driver_llcc68.c.
uint8_t llcc68_read_register | ( | llcc68_handle_t * | handle, |
uint16_t | reg, | ||
uint8_t * | buf, | ||
uint16_t | len | ||
) |
read the register
[in] | *handle | pointer to an llcc68 handle structure |
[in] | reg | register address |
[out] | *buf | pointer to a data buffer |
[in] | len | data length |
Definition at line 1347 of file driver_llcc68.c.
uint8_t llcc68_reset_stats | ( | llcc68_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 llcc68 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 3526 of file driver_llcc68.c.
uint8_t llcc68_set_buffer_base_address | ( | llcc68_handle_t * | handle, |
uint8_t | tx_base_addr, | ||
uint8_t | rx_base_addr | ||
) |
set the buffer base address
[in] | *handle | pointer to an llcc68 handle structure |
[in] | tx_base_addr | tx base address |
[in] | rx_base_addr | rx base address |
Definition at line 3126 of file driver_llcc68.c.
uint8_t llcc68_set_cad | ( | llcc68_handle_t * | handle | ) |
run the cad
[in] | *handle | pointer to an llcc68 handle structure |
Definition at line 1864 of file driver_llcc68.c.
uint8_t llcc68_set_cad_params | ( | llcc68_handle_t * | handle, |
llcc68_lora_cad_symbol_num_t | num, | ||
uint8_t | cad_det_peak, | ||
uint8_t | cad_det_min, | ||
llcc68_lora_cad_exit_mode_t | mode, | ||
uint32_t | timeout | ||
) |
set the cad params
[in] | *handle | pointer to an llcc68 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 3071 of file driver_llcc68.c.
uint8_t llcc68_set_calibration | ( | llcc68_handle_t * | handle, |
uint8_t | settings | ||
) |
set the calibration settings
[in] | *handle | pointer to an llcc68 handle structure |
[in] | settings | calibration param |
Definition at line 2040 of file driver_llcc68.c.
uint8_t llcc68_set_calibration_image | ( | llcc68_handle_t * | handle, |
uint8_t | freq1, | ||
uint8_t | freq2 | ||
) |
set the calibration image frequency
[in] | *handle | pointer to an llcc68 handle structure |
[in] | freq1 | image frequency 1 |
[in] | freq2 | image frequency 2 |
Definition at line 2087 of file driver_llcc68.c.
uint8_t llcc68_set_dio2_as_rf_switch_ctrl | ( | llcc68_handle_t * | handle, |
llcc68_bool_t | enable | ||
) |
set dio2 as rf switch ctrl
[in] | *handle | pointer to an llcc68 handle structure |
[in] | enable | bool value |
Definition at line 2381 of file driver_llcc68.c.
uint8_t llcc68_set_dio3_as_tcxo_ctrl | ( | llcc68_handle_t * | handle, |
llcc68_tcxo_voltage_t | voltage, | ||
uint32_t | delay | ||
) |
set dio3 as tcxo ctrl
[in] | *handle | pointer to an llcc68 handle structure |
[in] | voltage | tcxo voltage |
[in] | delay | tcxo ctrl delay |
Definition at line 2428 of file driver_llcc68.c.
uint8_t llcc68_set_dio_irq_params | ( | llcc68_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 llcc68 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 2233 of file driver_llcc68.c.
uint8_t llcc68_set_frequency_synthesis | ( | llcc68_handle_t * | handle | ) |
enter to the frequency synthesis mode
[in] | *handle | pointer to an llcc68 handle structure |
Definition at line 1572 of file driver_llcc68.c.
uint8_t llcc68_set_gfsk_modulation_params | ( | llcc68_handle_t * | handle, |
uint32_t | br, | ||
llcc68_gfsk_pulse_shape_t | shape, | ||
llcc68_gfsk_bandwidth_t | bw, | ||
uint32_t | fdev | ||
) |
set the modulation params in GFSK mode
[in] | *handle | pointer to an llcc68 handle structure |
[in] | br | bit rate |
[in] | shape | pulse shape |
[in] | bw | bandwidth |
[in] | fdev | frequency deviation |
Definition at line 2723 of file driver_llcc68.c.
uint8_t llcc68_set_gfsk_packet_params | ( | llcc68_handle_t * | handle, |
uint16_t | preamble_length, | ||
llcc68_gfsk_preamble_detector_length_t | detector_length, | ||
uint8_t | sync_word_length, | ||
llcc68_gfsk_addr_filter_t | filter, | ||
llcc68_gfsk_packet_type_t | packet_type, | ||
uint8_t | payload_length, | ||
llcc68_gfsk_crc_type_t | crc_type, | ||
llcc68_bool_t | whitening_enable | ||
) |
set the packet params in GFSK mode
[in] | *handle | pointer to an llcc68 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 2946 of file driver_llcc68.c.
uint8_t llcc68_set_lora_modulation_params | ( | llcc68_handle_t * | handle, |
llcc68_lora_sf_t | sf, | ||
llcc68_lora_bandwidth_t | bw, | ||
llcc68_lora_cr_t | cr, | ||
llcc68_bool_t | low_data_rate_optimize_enable | ||
) |
set the modulation params in LoRa mode
[in] | *handle | pointer to an llcc68 handle structure |
[in] | sf | spreading factor |
[in] | bw | bandwidth |
[in] | cr | coding rate |
[in] | low_data_rate_optimize_enable | bool value |
Definition at line 2888 of file driver_llcc68.c.
uint8_t llcc68_set_lora_packet_params | ( | llcc68_handle_t * | handle, |
uint16_t | preamble_length, | ||
llcc68_lora_header_t | header_type, | ||
uint8_t | payload_length, | ||
llcc68_lora_crc_type_t | crc_type, | ||
llcc68_bool_t | invert_iq_enable | ||
) |
set the packet params in LoRa mode
[in] | *handle | pointer to an llcc68 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 3014 of file driver_llcc68.c.
uint8_t llcc68_set_lora_symb_num_timeout | ( | llcc68_handle_t * | handle, |
uint8_t | symb_num | ||
) |
set the lora symbol number timeout
[in] | *handle | pointer to an llcc68 handle structure |
[in] | symb_num | symbol number |
Definition at line 3173 of file driver_llcc68.c.
uint8_t llcc68_set_pa_config | ( | llcc68_handle_t * | handle, |
uint8_t | pa_duty_cycle, | ||
uint8_t | hp_max | ||
) |
set the pa config
[in] | *handle | pointer to an llcc68 handle structure |
[in] | pa_duty_cycle | pa duty cycle |
[in] | hp_max | max power |
Definition at line 2135 of file driver_llcc68.c.
uint8_t llcc68_set_packet_type | ( | llcc68_handle_t * | handle, |
llcc68_packet_type_t | type | ||
) |
set the packet type
[in] | *handle | pointer to an llcc68 handle structure |
[in] | type | packet type |
Definition at line 2580 of file driver_llcc68.c.
uint8_t llcc68_set_regulator_mode | ( | llcc68_handle_t * | handle, |
llcc68_regulator_mode_t | mode | ||
) |
set the regulator_mode
[in] | *handle | pointer to an llcc68 handle structure |
[in] | mode | regulator mode |
Definition at line 1994 of file driver_llcc68.c.
uint8_t llcc68_set_rf_frequency | ( | llcc68_handle_t * | handle, |
uint32_t | reg | ||
) |
set the rf frequency
[in] | *handle | pointer to an llcc68 handle structure |
[in] | reg | rf frequency register data |
Definition at line 2531 of file driver_llcc68.c.
uint8_t llcc68_set_rx | ( | llcc68_handle_t * | handle, |
uint32_t | timeout | ||
) |
enter to the rx mode
[in] | *handle | pointer to an llcc68 handle structure |
[in] | timeout | rx timeout |
Definition at line 1665 of file driver_llcc68.c.
uint8_t llcc68_set_rx_duty_cycle | ( | llcc68_handle_t * | handle, |
uint32_t | rx_period, | ||
uint32_t | sleep_period | ||
) |
set the rx duty cycle
[in] | *handle | pointer to an llcc68 handle structure |
[in] | rx_period | rx period |
[in] | sleep_period | sleep period |
Definition at line 1814 of file driver_llcc68.c.
uint8_t llcc68_set_rx_tx_fallback_mode | ( | llcc68_handle_t * | handle, |
llcc68_rx_tx_fallback_mode_t | mode | ||
) |
set the rx tx fallback mode
[in] | *handle | pointer to an llcc68 handle structure |
[in] | mode | rx tx fallback mode |
Definition at line 2184 of file driver_llcc68.c.
uint8_t llcc68_set_sleep | ( | llcc68_handle_t * | handle, |
llcc68_start_mode_t | mode, | ||
llcc68_bool_t | rtc_wake_up_enable | ||
) |
enter to the sleep mode
[in] | *handle | pointer to an llcc68 handle structure |
[in] | mode | start mode |
[in] | rtc_wake_up_enable | bool value |
Definition at line 1481 of file driver_llcc68.c.
uint8_t llcc68_set_standby | ( | llcc68_handle_t * | handle, |
llcc68_clock_source_t | src | ||
) |
enter to the standby mode
[in] | *handle | pointer to an llcc68 handle structure |
[in] | src | clock source |
Definition at line 1527 of file driver_llcc68.c.
uint8_t llcc68_set_stop_timer_on_preamble | ( | llcc68_handle_t * | handle, |
llcc68_bool_t | enable | ||
) |
stop timer on preamble
[in] | *handle | pointer to an llcc68 handle structure |
[in] | enable | bool value |
Definition at line 1767 of file driver_llcc68.c.
uint8_t llcc68_set_tx | ( | llcc68_handle_t * | handle, |
uint32_t | timeout | ||
) |
enter to the tx mode
[in] | *handle | pointer to an llcc68 handle structure |
[in] | timeout | tx timeout |
Definition at line 1616 of file driver_llcc68.c.
uint8_t llcc68_set_tx_continuous_wave | ( | llcc68_handle_t * | handle | ) |
enter to the tx continuous wave mode
[in] | *handle | pointer to an llcc68 handle structure |
Definition at line 1907 of file driver_llcc68.c.
uint8_t llcc68_set_tx_infinite_preamble | ( | llcc68_handle_t * | handle | ) |
enter to the tx infinite preamble mode
[in] | *handle | pointer to an llcc68 handle structure |
Definition at line 1950 of file driver_llcc68.c.
uint8_t llcc68_set_tx_params | ( | llcc68_handle_t * | handle, |
int8_t | dbm, | ||
llcc68_ramp_time_t | t | ||
) |
set the tx params
[in] | *handle | pointer to an llcc68 handle structure |
[in] | dbm | rf power |
[in] | t | ramp time |
Definition at line 2673 of file driver_llcc68.c.
uint8_t llcc68_single_receive | ( | llcc68_handle_t * | handle, |
double | us | ||
) |
enter to the single receive mode
[in] | *handle | pointer to an llcc68 handle structure |
[in] | us | rx timeout |
Definition at line 821 of file driver_llcc68.c.
uint8_t llcc68_timeout_convert_to_data | ( | llcc68_handle_t * | handle, |
uint32_t | reg, | ||
double * | us | ||
) |
convert the register raw data to the timeout
[in] | *handle | pointer to an llcc68 handle structure |
[in] | reg | register raw data |
[out] | *us | pointer to a us buffer |
Definition at line 1739 of file driver_llcc68.c.
uint8_t llcc68_timeout_convert_to_register | ( | llcc68_handle_t * | handle, |
double | us, | ||
uint32_t * | reg | ||
) |
convert the timeout to the register raw data
[in] | *handle | pointer to an llcc68 handle structure |
[in] | us | timeout |
[out] | *reg | pointer to a register raw buffer |
Definition at line 1712 of file driver_llcc68.c.
uint8_t llcc68_write_buffer | ( | llcc68_handle_t * | handle, |
uint8_t | offset, | ||
uint8_t * | buf, | ||
uint16_t | len | ||
) |
write the buffer
[in] | *handle | pointer to an llcc68 handle structure |
[in] | offset | buffer offset |
[in] | *buf | pointer to a data buffer |
[in] | len | data length |
Definition at line 1392 of file driver_llcc68.c.
uint8_t llcc68_write_register | ( | llcc68_handle_t * | handle, |
uint16_t | reg, | ||
uint8_t * | buf, | ||
uint16_t | len | ||
) |
write the register
[in] | *handle | pointer to an llcc68 handle structure |
[in] | reg | register address |
[in] | *buf | pointer to a data buffer |
[in] | len | data length |
Definition at line 1302 of file driver_llcc68.c.