| LibDriver LLCC68 1.0.0 LLCC68 full function driver

Macros | Functions
driver_llcc68.c File Reference

driver llcc68 source file More...

`#include "driver_llcc68.h"`
`#include <math.h>`

Go to the source code of this file.

## Macros
#define | CHIP_NAME "Semtech LLCC68"
| chip information definition More...
#define | MANUFACTURER_NAME "Semtech"
#define | SUPPLY_VOLTAGE_MIN 1.8f
#define | SUPPLY_VOLTAGE_MAX 3.7f
#define | MAX_CURRENT 118.0f
#define | TEMPERATURE_MIN -40.0f
#define | TEMPERATURE_MAX 85.0f
#define | DRIVER_VERSION 1000
#define | LLCC68_COMMAND_SET_SLEEP 0x84
| chip command definition More...
#define | LLCC68_COMMAND_SET_STANDBY 0x80
#define | LLCC68_COMMAND_SET_FS 0xC1
#define | LLCC68_COMMAND_SET_TX 0x83
#define | LLCC68_COMMAND_SET_RX 0x82
#define | LLCC68_COMMAND_STOP_TIMER_ON_PREAMBLE 0x9F
#define | LLCC68_COMMAND_SET_RX_DUTY_CYCLE 0x94
#define | LLCC68_COMMAND_SET_CAD 0xC5
#define | LLCC68_COMMAND_SET_TX_CONTINUOUS_WAVE 0xD1
#define | LLCC68_COMMAND_SET_TX_INFINITE_PREAMBLE 0xD2
#define | LLCC68_COMMAND_SET_REGULATOR_MODE 0x96
#define | LLCC68_COMMAND_SET_CALIBRATE 0x89
#define | LLCC68_COMMAND_SET_CALIBRATE_IMAGE 0x98
#define | LLCC68_COMMAND_SET_PA_CONFIG 0x95
#define | LLCC68_COMMAND_SET_RX_TX_FALLBACK_MODE 0x93
#define | LLCC68_COMMAND_WRITE_REGISTER 0x0D
#define | LLCC68_COMMAND_READ_REGISTER 0x1D
#define | LLCC68_COMMAND_WRITE_BUFFER 0x0E
#define | LLCC68_COMMAND_READ_BUFFER 0x1E
#define | LLCC68_COMMAND_SET_DIO_IRQ_PARAMS 0x08
#define | LLCC68_COMMAND_GET_IRQ_STATUS 0x12
#define | LLCC68_COMMAND_CLEAR_IRQ_STATUS 0x02
#define | LLCC68_COMMAND_SET_DIO2_AS_RF_SWITCH_CTRL 0x9D
#define | LLCC68_COMMAND_SET_DIO3_AS_TCXO_CTRL 0x97
#define | LLCC68_COMMAND_SET_RF_FREQUENCY 0x86
#define | LLCC68_COMMAND_SET_PACKET_TYPE 0x8A
#define | LLCC68_COMMAND_GET_PACKET_TYPE 0x11
#define | LLCC68_COMMAND_SET_TX_PARAMS 0x8E
#define | LLCC68_COMMAND_SET_MODULATION_PARAMS 0x8B
#define | LLCC68_COMMAND_SET_PACKET_PARAMS 0x8C
#define | LLCC68_COMMAND_SET_CAD_PARAMS 0x88
#define | LLCC68_COMMAND_SET_BUFFER_BASE_ADDRESS 0x8F
#define | LLCC68_COMMAND_SET_LORA_SYMB_NUM_TIMEOUT 0xA0
#define | LLCC68_COMMAND_GET_STATUS 0xC0
#define | LLCC68_COMMAND_GET_RSSI_LNST 0x15
#define | LLCC68_COMMAND_GET_RX_BUFFER_STATUS 0x13
#define | LLCC68_COMMAND_GET_PACKET_STATUS 0x14
#define | LLCC68_COMMAND_GET_DEVICE_ERRORS 0x17
#define | LLCC68_COMMAND_CLEAR_DEVICE_ERRORS 0x07
#define | LLCC68_COMMAND_GET_STATS 0x10
#define | LLCC68_COMMAND_RESET_STATS 0x00
#define | LLCC68_REG_DIOX_OUTPUT_ENABLE 0x0580
| chip register definition More...
#define | LLCC68_REG_DIOX_INPUT_ENABLE 0x0583
#define | LLCC68_REG_DIOX_PULL_UP_CONTROL 0x0584
#define | LLCC68_REG_DIOX_PULL_DOWN_CONTROL 0x0585
#define | LLCC68_REG_WHITENING_INIT_VALUE_MSB 0x06B8
#define | LLCC68_REG_WHITENING_INIT_VALUE_LSB 0x06B9
#define | LLCC68_REG_CRC_INIT_VALUE_MSB 0x06BC
#define | LLCC68_REG_CRC_INIT_VALUE_LSB 0x06BD
#define | LLCC68_REG_CRC_POLYNOMIAL_VALUE_MSB 0x06BE
#define | LLCC68_REG_CRC_POLYNOMIAL_VALUE_LSB 0x06BF
#define | LLCC68_REG_SYNC_WORD_0 0x06C0
#define | LLCC68_REG_SYNC_WORD_1 0x06C1
#define | LLCC68_REG_SYNC_WORD_2 0x06C2
#define | LLCC68_REG_SYNC_WORD_3 0x06C3
#define | LLCC68_REG_SYNC_WORD_4 0x06C4
#define | LLCC68_REG_SYNC_WORD_5 0x06C5
#define | LLCC68_REG_SYNC_WORD_6 0x06C6
#define | LLCC68_REG_SYNC_WORD_7 0x06C7
#define | LLCC68_REG_NODE_ADDRESS 0x06CD
#define | LLCC68_REG_BROADCAST_ADDRESS 0x06CE
#define | LLCC68_REG_IQ_POLARITY_SETUP 0x0736
#define | LLCC68_REG_LORA_SYNC_WORD_MSB 0x0740
#define | LLCC68_REG_LORA_SYNC_WORD_LSB 0x0741
#define | LLCC68_REG_RANDOM_NUMBER_GEN_0 0x0819
#define | LLCC68_REG_RANDOM_NUMBER_GEN_1 0x081A
#define | LLCC68_REG_RANDOM_NUMBER_GEN_2 0x081B
#define | LLCC68_REG_RANDOM_NUMBER_GEN_3 0x081C
#define | LLCC68_REG_TX_MODULATION 0x0889
#define | LLCC68_REG_RX_GAIN 0x08AC
#define | LLCC68_REG_TX_CLAMP_CONFIG 0x08D8
#define | LLCC68_REG_OCP_CONFIGURATION 0x08E7
#define | LLCC68_REG_RTC_CONTROL 0x0902
#define | LLCC68_REG_XTA_TRIM 0x0911
#define | LLCC68_REG_XTB_TRIM 0x0912
#define | LLCC68_REG_DIO3_OUTPUT_CONTROL 0x0920
#define | LLCC68_REG_EVENT_MASK 0x0944

## Functions
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_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_lora_cad (llcc68_handle_t *handle, llcc68_bool_t *enable)
| run the cad More...
uint8_t | llcc68_check_packet_error (llcc68_handle_t *handle, llcc68_bool_t *enable)
| check the packet error 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_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_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...
uint8_t | llcc68_set_fsk_whitening_initial_value (llcc68_handle_t *handle, uint16_t value)
| set the whitening initial value in FSK mode More...
uint8_t | llcc68_get_fsk_whitening_initial_value (llcc68_handle_t *handle, uint16_t *value)
| get the whitening initial value in FSK mode More...
uint8_t | llcc68_set_fsk_crc_initical_value (llcc68_handle_t *handle, uint16_t value)
| set the crc initial value in FSK mode More...
uint8_t | llcc68_get_fsk_crc_initical_value (llcc68_handle_t *handle, uint16_t *value)
| get the crc initical value in FSK mode More...
uint8_t | llcc68_set_fsk_crc_polynomial_value (llcc68_handle_t *handle, uint16_t value)
| set the crc polynomial value in FSK mode More...
uint8_t | llcc68_get_fsk_crc_polynomial_value (llcc68_handle_t *handle, uint16_t *value)
| get the crc polynomial value in FSK mode More...
uint8_t | llcc68_set_fsk_sync_word (llcc68_handle_t *handle, uint8_t sync_word[8])
| set the sync word in FSK mode More...
uint8_t | llcc68_get_fsk_sync_word (llcc68_handle_t *handle, uint8_t sync_word[8])
| get the sync word in FSK mode More...
uint8_t | llcc68_set_fsk_node_address (llcc68_handle_t *handle, uint8_t addr)
| set the node address in FSK mode More...
uint8_t | llcc68_get_fsk_node_address (llcc68_handle_t *handle, uint8_t *addr)
| get the node address in FSK mode More...
uint8_t | llcc68_set_fsk_broadcast_address (llcc68_handle_t *handle, uint8_t addr)
| set the broadcast address in FSK mode More...
uint8_t | llcc68_get_fsk_broadcast_address (llcc68_handle_t *handle, uint8_t *addr)
| get the broadcast address in FSK mode More...
uint8_t | llcc68_set_iq_polarity (llcc68_handle_t *handle, uint8_t setup)
| set the iq polarity More...
uint8_t | llcc68_get_iq_polarity (llcc68_handle_t *handle, uint8_t *setup)
| get the iq polarity More...
uint8_t | llcc68_set_lora_sync_word (llcc68_handle_t *handle, uint16_t sync_word)
| set the lora sync word More...
uint8_t | llcc68_get_lora_sync_word (llcc68_handle_t *handle, uint16_t *sync_word)
| get the lora sync word More...
uint8_t | llcc68_get_random_number (llcc68_handle_t *handle, uint32_t *r)
| get the random number More...
uint8_t | llcc68_set_tx_modulation (llcc68_handle_t *handle, uint8_t modulation)
| set the tx modulation More...
uint8_t | llcc68_get_tx_modulation (llcc68_handle_t *handle, uint8_t *modulation)
| get the tx modulation More...
uint8_t | llcc68_set_rx_gain (llcc68_handle_t *handle, uint8_t gain)
| set the rx gain More...
uint8_t | llcc68_get_rx_gain (llcc68_handle_t *handle, uint8_t *gain)
| get the rx gain More...
uint8_t | llcc68_set_tx_clamp_config (llcc68_handle_t *handle, uint8_t config)
| set the tx clamp config More...
uint8_t | llcc68_get_tx_clamp_config (llcc68_handle_t *handle, uint8_t *config)
| get the tx clamp config More...
uint8_t | llcc68_set_ocp (llcc68_handle_t *handle, uint8_t ocp)
| set the ocp More...
uint8_t | llcc68_get_ocp (llcc68_handle_t *handle, uint8_t *ocp)
| get the ocp More...
uint8_t | llcc68_set_rtc_control (llcc68_handle_t *handle, uint8_t control)
| set the rtc control More...
uint8_t | llcc68_get_rtc_control (llcc68_handle_t *handle, uint8_t *control)
| get the rtc control More...
uint8_t | llcc68_set_xta_trim (llcc68_handle_t *handle, uint8_t trim)
| set the xta trim More...
uint8_t | llcc68_get_xta_trim (llcc68_handle_t *handle, uint8_t *trim)
| get the xta trim More...
uint8_t | llcc68_set_xtb_trim (llcc68_handle_t *handle, uint8_t trim)
| set the xtb trim More...
uint8_t | llcc68_get_xtb_trim (llcc68_handle_t *handle, uint8_t *trim)
| get the xtb trim More...
uint8_t | llcc68_set_dio3_output_control (llcc68_handle_t *handle, uint8_t control)
| set the dio3 output More...
uint8_t | llcc68_get_dio3_output_control (llcc68_handle_t *handle, uint8_t *control)
| get the dio3 output More...
uint8_t | llcc68_set_event_mask (llcc68_handle_t *handle, uint8_t mask)
| set the event mask More...
uint8_t | llcc68_get_event_mask (llcc68_handle_t *handle, uint8_t *mask)
| get the event mask More...
uint8_t | llcc68_set_dio_output_enable (llcc68_handle_t *handle, uint8_t enable)
| set the dio output enable More...
uint8_t | llcc68_get_dio_output_enable (llcc68_handle_t *handle, uint8_t *enable)
| get the dio output enable More...
uint8_t | llcc68_set_dio_input_enable (llcc68_handle_t *handle, uint8_t enable)
| set the dio input enable More...
uint8_t | llcc68_get_dio_input_enable (llcc68_handle_t *handle, uint8_t *enable)
| get the dio input enable More...
uint8_t | llcc68_set_pull_up_control (llcc68_handle_t *handle, uint8_t control)
| set the pull up control More...
uint8_t | llcc68_get_pull_up_control (llcc68_handle_t *handle, uint8_t *control)
| get the pull up control More...
uint8_t | llcc68_set_pull_down_control (llcc68_handle_t *handle, uint8_t control)
| set the pull down control More...
uint8_t | llcc68_get_pull_down_control (llcc68_handle_t *handle, uint8_t *control)
| get the pull down control More...
uint8_t | llcc68_write_read_reg (llcc68_handle_t *handle, uint8_t *in_buf, uint32_t in_len, uint8_t *out_buf, uint32_t out_len)
| write and read register More...
uint8_t | llcc68_info (llcc68_info_t *info)
| get chip's information More...

## Detailed Description

driver llcc68 source file

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version
  1.0.0

Author
  Shifeng Li

Date
  2023-04-15

### history

Date | Version | Author | Description
--- | --- | --- | ---
2023/04/15 | 1.0 | Shifeng Li | first upload

Definition in file driver_llcc68.c.

## Macro Definition Documentation

## ◆ CHIP_NAME

#define CHIP_NAME "Semtech LLCC68"

chip information definition

chip name

Definition at line 43 of file driver_llcc68.c.

## ◆ DRIVER_VERSION

#define DRIVER_VERSION 1000

driver version

Definition at line 50 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_CLEAR_DEVICE_ERRORS

#define LLCC68_COMMAND_CLEAR_DEVICE_ERRORS 0x07

clear device errors command

Definition at line 93 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_CLEAR_IRQ_STATUS

#define LLCC68_COMMAND_CLEAR_IRQ_STATUS 0x02

clear irq status command

Definition at line 76 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_GET_DEVICE_ERRORS

#define LLCC68_COMMAND_GET_DEVICE_ERRORS 0x17

get device errors command

Definition at line 92 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_GET_IRQ_STATUS

#define LLCC68_COMMAND_GET_IRQ_STATUS 0x12

get irq status command

Definition at line 75 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_GET_PACKET_STATUS

#define LLCC68_COMMAND_GET_PACKET_STATUS 0x14

get packet status command

Definition at line 91 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_GET_PACKET_TYPE

#define LLCC68_COMMAND_GET_PACKET_TYPE 0x11

get packet type command

Definition at line 81 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_GET_RSSI_LNST

#define LLCC68_COMMAND_GET_RSSI_LNST 0x15

get rssi inst command

Definition at line 89 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_GET_RX_BUFFER_STATUS

#define LLCC68_COMMAND_GET_RX_BUFFER_STATUS 0x13

get rx buffer status command

Definition at line 90 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_GET_STATS

#define LLCC68_COMMAND_GET_STATS 0x10

get stats command

Definition at line 94 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_GET_STATUS

#define LLCC68_COMMAND_GET_STATUS 0xC0

get status command

Definition at line 88 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_READ_BUFFER

#define LLCC68_COMMAND_READ_BUFFER 0x1E

read buffer command

Definition at line 73 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_READ_REGISTER

#define LLCC68_COMMAND_READ_REGISTER 0x1D

read register command

Definition at line 71 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_RESET_STATS

#define LLCC68_COMMAND_RESET_STATS 0x00

reset stats command

Definition at line 95 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_BUFFER_BASE_ADDRESS

#define LLCC68_COMMAND_SET_BUFFER_BASE_ADDRESS 0x8F

set buffer base address command

Definition at line 86 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_CAD

#define LLCC68_COMMAND_SET_CAD 0xC5

set cad command

Definition at line 62 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_CAD_PARAMS

#define LLCC68_COMMAND_SET_CAD_PARAMS 0x88

set cad params command

Definition at line 85 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_CALIBRATE

#define LLCC68_COMMAND_SET_CALIBRATE 0x89

set calibrate command

Definition at line 66 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_CALIBRATE_IMAGE

#define LLCC68_COMMAND_SET_CALIBRATE_IMAGE 0x98

set calibrate image command

Definition at line 67 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_DIO2_AS_RF_SWITCH_CTRL

#define LLCC68_COMMAND_SET_DIO2_AS_RF_SWITCH_CTRL 0x9D

set dio2 as rf switch ctrl command

Definition at line 77 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_DIO3_AS_TCXO_CTRL

#define LLCC68_COMMAND_SET_DIO3_AS_TCXO_CTRL 0x97

set dio3 as tcxo ctrl command

Definition at line 78 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_DIO_IRQ_PARAMS

#define LLCC68_COMMAND_SET_DIO_IRQ_PARAMS 0x08

set dio irq params command

Definition at line 74 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_FS

#define LLCC68_COMMAND_SET_FS 0xC1

set fs command

Definition at line 57 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_LORA_SYMB_NUM_TIMEOUT

#define LLCC68_COMMAND_SET_LORA_SYMB_NUM_TIMEOUT 0xA0

set lora symb num timeout command

Definition at line 87 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_MODULATION_PARAMS

#define LLCC68_COMMAND_SET_MODULATION_PARAMS 0x8B

set modulation params command

Definition at line 83 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_PA_CONFIG

#define LLCC68_COMMAND_SET_PA_CONFIG 0x95

set pa config command

Definition at line 68 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_PACKET_PARAMS

#define LLCC68_COMMAND_SET_PACKET_PARAMS 0x8C

set packet params command

Definition at line 84 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_PACKET_TYPE

#define LLCC68_COMMAND_SET_PACKET_TYPE 0x8A

set packet type command

Definition at line 80 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_REGULATOR_MODE

#define LLCC68_COMMAND_SET_REGULATOR_MODE 0x96

set regulator mode command

Definition at line 65 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_RF_FREQUENCY

#define LLCC68_COMMAND_SET_RF_FREQUENCY 0x86

set rf frequency command

Definition at line 79 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_RX

#define LLCC68_COMMAND_SET_RX 0x82

set rx command

Definition at line 59 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_RX_DUTY_CYCLE

#define LLCC68_COMMAND_SET_RX_DUTY_CYCLE 0x94

set rx duty cycle command

Definition at line 61 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_RX_TX_FALLBACK_MODE

#define LLCC68_COMMAND_SET_RX_TX_FALLBACK_MODE 0x93

set rx tx fallback mode command

Definition at line 69 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_SLEEP

#define LLCC68_COMMAND_SET_SLEEP 0x84

chip command definition

set sleep command

Definition at line 55 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_STANDBY

#define LLCC68_COMMAND_SET_STANDBY 0x80

set standby command

Definition at line 56 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_TX

#define LLCC68_COMMAND_SET_TX 0x83

set tx command

Definition at line 58 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_TX_CONTINUOUS_WAVE

#define LLCC68_COMMAND_SET_TX_CONTINUOUS_WAVE 0xD1

set tx continuous wave command

Definition at line 63 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_TX_INFINITE_PREAMBLE

#define LLCC68_COMMAND_SET_TX_INFINITE_PREAMBLE 0xD2

set tx infinite preamble command

Definition at line 64 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_SET_TX_PARAMS

#define LLCC68_COMMAND_SET_TX_PARAMS 0x8E

set tx params command

Definition at line 82 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_STOP_TIMER_ON_PREAMBLE

#define LLCC68_COMMAND_STOP_TIMER_ON_PREAMBLE 0x9F

stop timer on preamble command

Definition at line 60 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_WRITE_BUFFER

#define LLCC68_COMMAND_WRITE_BUFFER 0x0E

write buffer command

Definition at line 72 of file driver_llcc68.c.

## ◆ LLCC68_COMMAND_WRITE_REGISTER

#define LLCC68_COMMAND_WRITE_REGISTER 0x0D

write register command

Definition at line 70 of file driver_llcc68.c.

## ◆ LLCC68_REG_BROADCAST_ADDRESS

#define LLCC68_REG_BROADCAST_ADDRESS 0x06CE

broadcast address register

Definition at line 119 of file driver_llcc68.c.

## ◆ LLCC68_REG_CRC_INIT_VALUE_LSB

#define LLCC68_REG_CRC_INIT_VALUE_LSB 0x06BD

crc lsb initial value register

Definition at line 107 of file driver_llcc68.c.

## ◆ LLCC68_REG_CRC_INIT_VALUE_MSB

#define LLCC68_REG_CRC_INIT_VALUE_MSB 0x06BC

crc msb initial value register

Definition at line 106 of file driver_llcc68.c.

## ◆ LLCC68_REG_CRC_POLYNOMIAL_VALUE_LSB

#define LLCC68_REG_CRC_POLYNOMIAL_VALUE_LSB 0x06BF

crc lsb polynomial value register

Definition at line 109 of file driver_llcc68.c.

## ◆ LLCC68_REG_CRC_POLYNOMIAL_VALUE_MSB

#define LLCC68_REG_CRC_POLYNOMIAL_VALUE_MSB 0x06BE

crc msb polynomial value register

Definition at line 108 of file driver_llcc68.c.

## ◆ LLCC68_REG_DIO3_OUTPUT_CONTROL

#define LLCC68_REG_DIO3_OUTPUT_CONTROL 0x0920

dio3 output voltage control register

Definition at line 134 of file driver_llcc68.c.

## ◆ LLCC68_REG_DIOX_INPUT_ENABLE

#define LLCC68_REG_DIOX_INPUT_ENABLE 0x0583

diox input enable register

Definition at line 101 of file driver_llcc68.c.

## ◆ LLCC68_REG_DIOX_OUTPUT_ENABLE

#define LLCC68_REG_DIOX_OUTPUT_ENABLE 0x0580

chip register definition

diox output enable register

Definition at line 100 of file driver_llcc68.c.

## ◆ LLCC68_REG_DIOX_PULL_DOWN_CONTROL

#define LLCC68_REG_DIOX_PULL_DOWN_CONTROL 0x0585

diox pull down control register

Definition at line 103 of file driver_llcc68.c.

## ◆ LLCC68_REG_DIOX_PULL_UP_CONTROL

#define LLCC68_REG_DIOX_PULL_UP_CONTROL 0x0584

diox pull up control register

Definition at line 102 of file driver_llcc68.c.

## ◆ LLCC68_REG_EVENT_MASK

#define LLCC68_REG_EVENT_MASK 0x0944

event mask register

Definition at line 135 of file driver_llcc68.c.

## ◆ LLCC68_REG_IQ_POLARITY_SETUP

#define LLCC68_REG_IQ_POLARITY_SETUP 0x0736

iq polarity setup register

Definition at line 120 of file driver_llcc68.c.

## ◆ LLCC68_REG_LORA_SYNC_WORD_LSB

#define LLCC68_REG_LORA_SYNC_WORD_LSB 0x0741

lora sync word lsb register

Definition at line 122 of file driver_llcc68.c.

## ◆ LLCC68_REG_LORA_SYNC_WORD_MSB

#define LLCC68_REG_LORA_SYNC_WORD_MSB 0x0740

lora sync word msb register

Definition at line 121 of file driver_llcc68.c.

## ◆ LLCC68_REG_NODE_ADDRESS

#define LLCC68_REG_NODE_ADDRESS 0x06CD

node address register

Definition at line 118 of file driver_llcc68.c.

## ◆ LLCC68_REG_OCP_CONFIGURATION

#define LLCC68_REG_OCP_CONFIGURATION 0x08E7

ocp configuration register

Definition at line 130 of file driver_llcc68.c.

## ◆ LLCC68_REG_RANDOM_NUMBER_GEN_0

#define LLCC68_REG_RANDOM_NUMBER_GEN_0 0x0819

random number gen 0 register

Definition at line 123 of file driver_llcc68.c.

## ◆ LLCC68_REG_RANDOM_NUMBER_GEN_1

#define LLCC68_REG_RANDOM_NUMBER_GEN_1 0x081A

random number gen 1 register

Definition at line 124 of file driver_llcc68.c.

## ◆ LLCC68_REG_RANDOM_NUMBER_GEN_2

#define LLCC68_REG_RANDOM_NUMBER_GEN_2 0x081B

random number gen 2 register

Definition at line 125 of file driver_llcc68.c.

## ◆ LLCC68_REG_RANDOM_NUMBER_GEN_3

#define LLCC68_REG_RANDOM_NUMBER_GEN_3 0x081C

random number gen 3 register

Definition at line 126 of file driver_llcc68.c.

## ◆ LLCC68_REG_RTC_CONTROL

#define LLCC68_REG_RTC_CONTROL 0x0902

rtc control register

Definition at line 131 of file driver_llcc68.c.

## ◆ LLCC68_REG_RX_GAIN

#define LLCC68_REG_RX_GAIN 0x08AC

rx gain register

Definition at line 128 of file driver_llcc68.c.

## ◆ LLCC68_REG_SYNC_WORD_0

#define LLCC68_REG_SYNC_WORD_0 0x06C0

1st byte of the sync word in fsk mode register

Definition at line 110 of file driver_llcc68.c.

## ◆ LLCC68_REG_SYNC_WORD_1

#define LLCC68_REG_SYNC_WORD_1 0x06C1

2nd byte of the sync word in fsk mode register

Definition at line 111 of file driver_llcc68.c.

## ◆ LLCC68_REG_SYNC_WORD_2

#define LLCC68_REG_SYNC_WORD_2 0x06C2

3rd byte of the sync word in fsk mode register

Definition at line 112 of file driver_llcc68.c.

## ◆ LLCC68_REG_SYNC_WORD_3

#define LLCC68_REG_SYNC_WORD_3 0x06C3

4th byte of the sync word in fsk mode register

Definition at line 113 of file driver_llcc68.c.

## ◆ LLCC68_REG_SYNC_WORD_4

#define LLCC68_REG_SYNC_WORD_4 0x06C4

5th byte of the sync word in fsk mode register

Definition at line 114 of file driver_llcc68.c.

## ◆ LLCC68_REG_SYNC_WORD_5

#define LLCC68_REG_SYNC_WORD_5 0x06C5

6th byte of the sync word in fsk mode register

Definition at line 115 of file driver_llcc68.c.

## ◆ LLCC68_REG_SYNC_WORD_6

#define LLCC68_REG_SYNC_WORD_6 0x06C6

7th byte of the sync word in fsk mode register

Definition at line 116 of file driver_llcc68.c.

## ◆ LLCC68_REG_SYNC_WORD_7

#define LLCC68_REG_SYNC_WORD_7 0x06C7

8th byte of the sync word in fsk mode register

Definition at line 117 of file driver_llcc68.c.

## ◆ LLCC68_REG_TX_CLAMP_CONFIG

#define LLCC68_REG_TX_CLAMP_CONFIG 0x08D8

tx clamp config register

Definition at line 129 of file driver_llcc68.c.

## ◆ LLCC68_REG_TX_MODULATION

#define LLCC68_REG_TX_MODULATION 0x0889

tx modulation register

Definition at line 127 of file driver_llcc68.c.

## ◆ LLCC68_REG_WHITENING_INIT_VALUE_LSB

#define LLCC68_REG_WHITENING_INIT_VALUE_LSB 0x06B9

whitening initial value lsb register

Definition at line 105 of file driver_llcc68.c.

## ◆ LLCC68_REG_WHITENING_INIT_VALUE_MSB

#define LLCC68_REG_WHITENING_INIT_VALUE_MSB 0x06B8

whitening initial value msb register

Definition at line 104 of file driver_llcc68.c.

## ◆ LLCC68_REG_XTA_TRIM

#define LLCC68_REG_XTA_TRIM 0x0911

xta trim register

Definition at line 132 of file driver_llcc68.c.

## ◆ LLCC68_REG_XTB_TRIM

#define LLCC68_REG_XTB_TRIM 0x0912

xtb trim register

Definition at line 133 of file driver_llcc68.c.

## ◆ MANUFACTURER_NAME

#define MANUFACTURER_NAME "Semtech"

manufacturer name

Definition at line 44 of file driver_llcc68.c.

## ◆ MAX_CURRENT

#define MAX_CURRENT 118.0f

chip max current

Definition at line 47 of file driver_llcc68.c.

## ◆ SUPPLY_VOLTAGE_MAX

#define SUPPLY_VOLTAGE_MAX 3.7f

chip max supply voltage

Definition at line 46 of file driver_llcc68.c.

## ◆ SUPPLY_VOLTAGE_MIN

#define SUPPLY_VOLTAGE_MIN 1.8f

chip min supply voltage

Definition at line 45 of file driver_llcc68.c.

## ◆ TEMPERATURE_MAX

#define TEMPERATURE_MAX 85.0f

chip max operating temperature

Definition at line 49 of file driver_llcc68.c.

## ◆ TEMPERATURE_MIN

#define TEMPERATURE_MIN -40.0f

chip min operating temperature

Definition at line 48 of file driver_llcc68.c.