37 #ifndef DRIVER_LLCC68_LORA_H
38 #define DRIVER_LLCC68_LORA_H
56 #define LLCC68_LORA_DEFAULT_STOP_TIMER_ON_PREAMBLE LLCC68_BOOL_FALSE
57 #define LLCC68_LORA_DEFAULT_REGULATOR_MODE LLCC68_REGULATOR_MODE_DC_DC_LDO
58 #define LLCC68_LORA_DEFAULT_PA_CONFIG_DUTY_CYCLE 0x02
59 #define LLCC68_LORA_DEFAULT_PA_CONFIG_HP_MAX 0x03
60 #define LLCC68_LORA_DEFAULT_TX_DBM 17
61 #define LLCC68_LORA_DEFAULT_RAMP_TIME LLCC68_RAMP_TIME_10US
62 #define LLCC68_LORA_DEFAULT_SF LLCC68_LORA_SF_9
63 #define LLCC68_LORA_DEFAULT_BANDWIDTH LLCC68_LORA_BANDWIDTH_125_KHZ
64 #define LLCC68_LORA_DEFAULT_CR LLCC68_LORA_CR_4_5
65 #define LLCC68_LORA_DEFAULT_LOW_DATA_RATE_OPTIMIZE LLCC68_BOOL_FALSE
66 #define LLCC68_LORA_DEFAULT_RF_FREQUENCY 480000000U
67 #define LLCC68_LORA_DEFAULT_SYMB_NUM_TIMEOUT 0
68 #define LLCC68_LORA_DEFAULT_SYNC_WORD 0x3444U
69 #define LLCC68_LORA_DEFAULT_RX_GAIN 0x94
70 #define LLCC68_LORA_DEFAULT_OCP 0x38
71 #define LLCC68_LORA_DEFAULT_PREAMBLE_LENGTH 12
72 #define LLCC68_LORA_DEFAULT_HEADER LLCC68_LORA_HEADER_EXPLICIT
73 #define LLCC68_LORA_DEFAULT_BUFFER_SIZE 255
74 #define LLCC68_LORA_DEFAULT_CRC_TYPE LLCC68_LORA_CRC_TYPE_ON
75 #define LLCC68_LORA_DEFAULT_INVERT_IQ LLCC68_BOOL_FALSE
76 #define LLCC68_LORA_DEFAULT_CAD_SYMBOL_NUM LLCC68_LORA_CAD_SYMBOL_NUM_2
77 #define LLCC68_LORA_DEFAULT_CAD_DET_PEAK 24
78 #define LLCC68_LORA_DEFAULT_CAD_DET_MIN 10
79 #define LLCC68_LORA_DEFAULT_START_MODE LLCC68_START_MODE_WARM
80 #define LLCC68_LORA_DEFAULT_RTC_WAKE_UP LLCC68_BOOL_TRUE
99 uint8_t
llcc68_lora_init(
void (*callback)(uint16_t type, uint8_t *buf, uint16_t len));
driver llcc68 interface header file
llcc68_bool_t
llcc68 bool enumeration definition
uint8_t llcc68_lora_deinit(void)
lora example deinit
uint8_t llcc68_lora_check_packet_error(llcc68_bool_t *enable)
lora example check packet error
uint8_t llcc68_lora_wake_up(void)
lora example wake up the chip
uint8_t llcc68_lora_set_shot_receive_mode(double us)
lora example enter to the shot receive mode
uint8_t llcc68_lora_set_continuous_receive_mode(void)
lora example enter to the continuous receive mode
uint8_t llcc68_lora_run_cad(llcc68_bool_t *enable)
lora example run the cad
uint8_t llcc68_lora_sleep(void)
lora example enter to the sleep mode
uint8_t llcc68_lora_send(uint8_t *buf, uint16_t len)
lora example send lora data
uint8_t llcc68_lora_init(void(*callback)(uint16_t type, uint8_t *buf, uint16_t len))
lora example init
uint8_t llcc68_lora_irq_handler(void)
llcc68 lora irq
uint8_t llcc68_lora_get_status(float *rssi, float *snr)
lora example get the status
uint8_t llcc68_lora_set_send_mode(void)
lora example enter to the send mode