| LibDriver LLCC68 1.0.0 LLCC68 full function driver

driver_llcc68_lora.h
Go to the documentation of this file.
1
37 #ifndef DRIVER_LLCC68_LORA_H
38 #define DRIVER_LLCC68_LORA_H
39
40 #include "driver_llcc68_interface.h"
41
42 #ifdef __cplusplus
43 extern "C"{
44 #endif
45
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
89 uint8_t llcc68_lora_irq_handler(void);
90
99 uint8_t llcc68_lora_init(void (*callback)(uint16_t type, uint8_t *buf, uint16_t len));
100
108 uint8_t llcc68_lora_deinit(void);
109
117 uint8_t llcc68_lora_set_continuous_receive_mode(void);
118
127 uint8_t llcc68_lora_set_shot_receive_mode(double us);
128
136 uint8_t llcc68_lora_set_send_mode(void);
137
147 uint8_t llcc68_lora_send(uint8_t *buf, uint16_t len);
148
157 uint8_t llcc68_lora_run_cad(llcc68_bool_t *enable);
158
168 uint8_t llcc68_lora_get_status(float *rssi, float *snr);
169
178 uint8_t llcc68_lora_check_packet_error(llcc68_bool_t *enable);
179
187 uint8_t llcc68_lora_sleep(void);
188
196 uint8_t llcc68_lora_wake_up(void);
197
202 #ifdef __cplusplus
203 }
204 #endif
205
206 #endif
driver_llcc68_interface.h
driver llcc68 interface header file
llcc68_bool_t
llcc68_bool_t
llcc68 bool enumeration definition
Definition: driver_llcc68.h:63
llcc68_lora_deinit
uint8_t llcc68_lora_deinit(void)
lora example deinit
Definition: driver_llcc68_lora.c:342
llcc68_lora_check_packet_error
uint8_t llcc68_lora_check_packet_error(llcc68_bool_t *enable)
lora example check packet error
Definition: driver_llcc68_lora.c:625
llcc68_lora_wake_up
uint8_t llcc68_lora_wake_up(void)
lora example wake up the chip
Definition: driver_llcc68_lora.c:380
llcc68_lora_set_shot_receive_mode
uint8_t llcc68_lora_set_shot_receive_mode(double us)
lora example enter to the shot receive mode
Definition: driver_llcc68_lora.c:462
llcc68_lora_set_continuous_receive_mode
uint8_t llcc68_lora_set_continuous_receive_mode(void)
lora example enter to the continuous receive mode
Definition: driver_llcc68_lora.c:401
llcc68_lora_run_cad
uint8_t llcc68_lora_run_cad(llcc68_bool_t *enable)
lora example run the cad
Definition: driver_llcc68_lora.c:572
llcc68_lora_sleep
uint8_t llcc68_lora_sleep(void)
lora example enter to the sleep mode
Definition: driver_llcc68_lora.c:361
llcc68_lora_send
uint8_t llcc68_lora_send(uint8_t *buf, uint16_t len)
lora example send lora data
Definition: driver_llcc68_lora.c:550
llcc68_lora_init
uint8_t llcc68_lora_init(void(*callback)(uint16_t type, uint8_t *buf, uint16_t len))
lora example init
Definition: driver_llcc68_lora.c:68
llcc68_lora_irq_handler
uint8_t llcc68_lora_irq_handler(void)
llcc68 lora irq
Definition: driver_llcc68_lora.c:48
llcc68_lora_get_status
uint8_t llcc68_lora_get_status(float *rssi, float *snr)
lora example get the status
Definition: driver_llcc68_lora.c:600
llcc68_lora_set_send_mode
uint8_t llcc68_lora_set_send_mode(void)
lora example enter to the send mode
Definition: driver_llcc68_lora.c:522