| LibDriver LLCC68 1.0.0 LLCC68 full function driver

driver_llcc68_interface_template.c
Go to the documentation of this file.
1
37 #include "driver_llcc68_interface.h"
38
46 uint8_t llcc68_interface_spi_init(void)
47 {
48 return 0;
49 }
50
58 uint8_t llcc68_interface_spi_deinit(void)
59 {
60 return 0;
61 }
62
74 uint8_t llcc68_interface_spi_write_read(uint8_t *in_buf, uint32_t in_len,
75 uint8_t *out_buf, uint32_t out_len)
76 {
77 return 0;
78 }
79
87 uint8_t llcc68_interface_reset_gpio_init(void)
88 {
89 return 0;
90 }
91
99 uint8_t llcc68_interface_reset_gpio_deinit(void)
100 {
101 return 0;
102 }
103
112 uint8_t llcc68_interface_reset_gpio_write(uint8_t data)
113 {
114 return 0;
115 }
116
124 uint8_t llcc68_interface_busy_gpio_init(void)
125 {
126 return 0;
127 }
128
136 uint8_t llcc68_interface_busy_gpio_deinit(void)
137 {
138 return 0;
139 }
140
149 uint8_t llcc68_interface_busy_gpio_read(uint8_t *value)
150 {
151 return 0;
152 }
153
159 void llcc68_interface_delay_ms(uint32_t ms)
160 {
161
162 }
163
169 void llcc68_interface_debug_print(const char *const fmt, ...)
170 {
171
172 }
173
181 void llcc68_interface_receive_callback(uint16_t type, uint8_t *buf, uint16_t len)
182 {
183 switch (type)
184 {
185 case LLCC68_IRQ_TX_DONE :
186 {
187 llcc68_interface_debug_print("llcc68: irq tx done.\n");
188
189 break;
190 }
191 case LLCC68_IRQ_RX_DONE :
192 {
193 llcc68_interface_debug_print("llcc68: irq rx done.\n");
194
195 break;
196 }
197 case LLCC68_IRQ_PREAMBLE_DETECTED :
198 {
199 llcc68_interface_debug_print("llcc68: irq preamble detected.\n");
200
201 break;
202 }
203 case LLCC68_IRQ_SYNC_WORD_VALID :
204 {
205 llcc68_interface_debug_print("llcc68: irq valid sync word detected.\n");
206
207 break;
208 }
209 case LLCC68_IRQ_HEADER_VALID :
210 {
211 llcc68_interface_debug_print("llcc68: irq valid header.\n");
212
213 break;
214 }
215 case LLCC68_IRQ_HEADER_ERR :
216 {
217 llcc68_interface_debug_print("llcc68: irq header error.\n");
218
219 break;
220 }
221 case LLCC68_IRQ_CRC_ERR :
222 {
223 llcc68_interface_debug_print("llcc68: irq crc error.\n");
224
225 break;
226 }
227 case LLCC68_IRQ_CAD_DONE :
228 {
229 llcc68_interface_debug_print("llcc68: irq cad done.\n");
230
231 break;
232 }
233 case LLCC68_IRQ_CAD_DETECTED :
234 {
235 llcc68_interface_debug_print("llcc68: irq cad detected.\n");
236
237 break;
238 }
239 case LLCC68_IRQ_TIMEOUT :
240 {
241 llcc68_interface_debug_print("llcc68: irq timeout.\n");
242
243 break;
244 }
245 default :
246 {
247 llcc68_interface_debug_print("llcc68: unknown code.\n");
248
249 break;
250 }
251 }
252 }
driver_llcc68_interface.h
driver llcc68 interface header file
LLCC68_IRQ_PREAMBLE_DETECTED
@ LLCC68_IRQ_PREAMBLE_DETECTED
Definition: driver_llcc68.h:116
LLCC68_IRQ_TX_DONE
@ LLCC68_IRQ_TX_DONE
Definition: driver_llcc68.h:114
LLCC68_IRQ_HEADER_ERR
@ LLCC68_IRQ_HEADER_ERR
Definition: driver_llcc68.h:119
LLCC68_IRQ_CRC_ERR
@ LLCC68_IRQ_CRC_ERR
Definition: driver_llcc68.h:120
LLCC68_IRQ_RX_DONE
@ LLCC68_IRQ_RX_DONE
Definition: driver_llcc68.h:115
LLCC68_IRQ_CAD_DETECTED
@ LLCC68_IRQ_CAD_DETECTED
Definition: driver_llcc68.h:122
LLCC68_IRQ_HEADER_VALID
@ LLCC68_IRQ_HEADER_VALID
Definition: driver_llcc68.h:118
LLCC68_IRQ_TIMEOUT
@ LLCC68_IRQ_TIMEOUT
Definition: driver_llcc68.h:123
LLCC68_IRQ_SYNC_WORD_VALID
@ LLCC68_IRQ_SYNC_WORD_VALID
Definition: driver_llcc68.h:117
LLCC68_IRQ_CAD_DONE
@ LLCC68_IRQ_CAD_DONE
Definition: driver_llcc68.h:121
llcc68_interface_reset_gpio_init
uint8_t llcc68_interface_reset_gpio_init(void)
interface reset gpio init
Definition: driver_llcc68_interface_template.c:87
llcc68_interface_busy_gpio_read
uint8_t llcc68_interface_busy_gpio_read(uint8_t *value)
interface busy gpio read
Definition: driver_llcc68_interface_template.c:149
llcc68_interface_busy_gpio_deinit
uint8_t llcc68_interface_busy_gpio_deinit(void)
interface busy gpio deinit
Definition: driver_llcc68_interface_template.c:136
llcc68_interface_spi_deinit
uint8_t llcc68_interface_spi_deinit(void)
interface spi bus deinit
Definition: driver_llcc68_interface_template.c:58
llcc68_interface_spi_write_read
uint8_t llcc68_interface_spi_write_read(uint8_t *in_buf, uint32_t in_len, uint8_t *out_buf, uint32_t out_len)
interface spi bus write read
Definition: driver_llcc68_interface_template.c:74
llcc68_interface_reset_gpio_deinit
uint8_t llcc68_interface_reset_gpio_deinit(void)
interface reset gpio deinit
Definition: driver_llcc68_interface_template.c:99
llcc68_interface_receive_callback
void llcc68_interface_receive_callback(uint16_t type, uint8_t *buf, uint16_t len)
interface receive callback
Definition: driver_llcc68_interface_template.c:181
llcc68_interface_debug_print
void llcc68_interface_debug_print(const char *const fmt,...)
interface print format data
Definition: driver_llcc68_interface_template.c:169
llcc68_interface_delay_ms
void llcc68_interface_delay_ms(uint32_t ms)
interface delay ms
Definition: driver_llcc68_interface_template.c:159
llcc68_interface_spi_init
uint8_t llcc68_interface_spi_init(void)
interface spi bus init
Definition: driver_llcc68_interface_template.c:46
llcc68_interface_busy_gpio_init
uint8_t llcc68_interface_busy_gpio_init(void)
interface busy gpio init
Definition: driver_llcc68_interface_template.c:124
llcc68_interface_reset_gpio_write
uint8_t llcc68_interface_reset_gpio_write(uint8_t data)
interface reset gpio write
Definition: driver_llcc68_interface_template.c:112