LibDriver LLCC68  1.0.0
LLCC68 full-featured driver
driver_llcc68_interface_template.c
Go to the documentation of this file.
1 
38 
47 {
48  return 0;
49 }
50 
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 
88 {
89  return 0;
90 }
91 
100 {
101  return 0;
102 }
103 
113 {
114  return 0;
115 }
116 
125 {
126  return 0;
127 }
128 
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  }
198  {
199  llcc68_interface_debug_print("llcc68: irq preamble detected.\n");
200 
201  break;
202  }
204  {
205  llcc68_interface_debug_print("llcc68: irq valid sync word detected.\n");
206 
207  break;
208  }
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  }
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 header file
@ LLCC68_IRQ_PREAMBLE_DETECTED
@ LLCC68_IRQ_TX_DONE
@ LLCC68_IRQ_HEADER_ERR
@ LLCC68_IRQ_CRC_ERR
@ LLCC68_IRQ_RX_DONE
@ LLCC68_IRQ_CAD_DETECTED
@ LLCC68_IRQ_HEADER_VALID
@ LLCC68_IRQ_TIMEOUT
@ LLCC68_IRQ_SYNC_WORD_VALID
@ LLCC68_IRQ_CAD_DONE
uint8_t llcc68_interface_reset_gpio_init(void)
interface reset gpio init
uint8_t llcc68_interface_busy_gpio_read(uint8_t *value)
interface busy gpio read
uint8_t llcc68_interface_busy_gpio_deinit(void)
interface busy gpio deinit
uint8_t llcc68_interface_spi_deinit(void)
interface spi bus deinit
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
uint8_t llcc68_interface_reset_gpio_deinit(void)
interface reset gpio deinit
void llcc68_interface_receive_callback(uint16_t type, uint8_t *buf, uint16_t len)
interface receive callback
void llcc68_interface_debug_print(const char *const fmt,...)
interface print format data
void llcc68_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t llcc68_interface_spi_init(void)
interface spi bus init
uint8_t llcc68_interface_busy_gpio_init(void)
interface busy gpio init
uint8_t llcc68_interface_reset_gpio_write(uint8_t data)
interface reset gpio write