TMPM4G(1) Group Peripheral Driver User Manual  V1.0.0.0
txz_cec.h
Go to the documentation of this file.
1 
13 /*------------------------------------------------------------------------------*/
14 /* Define to prevent recursive inclusion */
15 /*------------------------------------------------------------------------------*/
16 #ifndef __CEC_H
17 #define __CEC_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /*------------------------------------------------------------------------------*/
24 /* Includes */
25 /*------------------------------------------------------------------------------*/
26 #include "txz_driver_def.h"
27 
38 /*------------------------------------------------------------------------------*/
39 /* Macro Definition */
40 /*------------------------------------------------------------------------------*/
46 /* ************************************************************************************ */
52 #define CECxADD_CECADD_0 ((uint32_t)0x00000001)
53 #define CECxADD_CECADD_1 ((uint32_t)0x00000002)
54 #define CECxADD_CECADD_2 ((uint32_t)0x00000004)
55 #define CECxADD_CECADD_3 ((uint32_t)0x00000008)
56 #define CECxADD_CECADD_4 ((uint32_t)0x00000010)
57 #define CECxADD_CECADD_5 ((uint32_t)0x00000020)
58 #define CECxADD_CECADD_6 ((uint32_t)0x00000040)
59 #define CECxADD_CECADD_7 ((uint32_t)0x00000080)
60 #define CECxADD_CECADD_8 ((uint32_t)0x00000100)
61 #define CECxADD_CECADD_9 ((uint32_t)0x00000200)
62 #define CECxADD_CECADD_A ((uint32_t)0x00000400)
63 #define CECxADD_CECADD_B ((uint32_t)0x00000800)
64 #define CECxADD_CECADD_C ((uint32_t)0x00001000)
65 #define CECxADD_CECADD_D ((uint32_t)0x00002000)
66 #define CECxADD_CECADD_E ((uint32_t)0x00004000)
67 #define CECxADD_CECADD_F ((uint32_t)0x00008000) /* End of group CECxADD */
71 
72 /* ************************************************************************************ */
83 #define CECxRCR1_CECACKDIS_ACK_ON ((uint32_t)0x00000000)
84 #define CECxRCR1_CECACKDIS_ACK_OFF ((uint32_t)0x01000000) /* End of group CEC_ACKDIS */
88 
94 #define CECxRCR1_CECHNC_NONE ((uint32_t)0x00000000)
95 #define CECxRCR1_CECHNC_1_FS ((uint32_t)0x00100000)
96 #define CECxRCR1_CECHNC_2_FS ((uint32_t)0x00200000)
97 #define CECxRCR1_CECHNC_3_FS ((uint32_t)0x00300000) /* End of group CEC_HNC */
101 
107 #define CECxRCR1_CECLNC_NONE ((uint32_t)0x00000000)
108 #define CECxRCR1_CECLNC_1_FS ((uint32_t)0x00010000)
109 #define CECxRCR1_CECLNC_2_FS ((uint32_t)0x00020000)
110 #define CECxRCR1_CECLNC_3_FS ((uint32_t)0x00030000) /* End of group CEC_LNC */
114 
120 #define CECxRCR1_CECMIN_NONE ((uint32_t)0x00000000)
121 #define CECxRCR1_CECMIN_P_1_FS ((uint32_t)0x00001000)
122 #define CECxRCR1_CECMIN_P_2_FS ((uint32_t)0x00002000)
123 #define CECxRCR1_CECMIN_P_3_FS ((uint32_t)0x00003000)
124 #define CECxRCR1_CECMIN_M_1_FS ((uint32_t)0x00004000)
125 #define CECxRCR1_CECMIN_M_2_FS ((uint32_t)0x00005000)
126 #define CECxRCR1_CECMIN_M_3_FS ((uint32_t)0x00006000)
127 #define CECxRCR1_CECMIN_M_4_FS ((uint32_t)0x00007000) /* End of group CEC_MIN */
131 
137 #define CECxRCR1_CECMAX_NONE ((uint32_t)0x00000000)
138 #define CECxRCR1_CECMAX_P_1_FS ((uint32_t)0x00000100)
139 #define CECxRCR1_CECMAX_P_2_FS ((uint32_t)0x00000200)
140 #define CECxRCR1_CECMAX_P_3_FS ((uint32_t)0x00000300)
141 #define CECxRCR1_CECMAX_M_1_FS ((uint32_t)0x00000400)
142 #define CECxRCR1_CECMAX_M_2_FS ((uint32_t)0x00000500)
143 #define CECxRCR1_CECMAX_M_3_FS ((uint32_t)0x00000600)
144 #define CECxRCR1_CECMAX_M_4_FS ((uint32_t)0x00000700) /* End of group CEC_MAX */
148 
154 #define CECxRCR1_CECDAT_NONE ((uint32_t)0x00000000)
155 #define CECxRCR1_CECDAT_P_2_FS ((uint32_t)0x00000010)
156 #define CECxRCR1_CECDAT_P_4_FS ((uint32_t)0x00000020)
157 #define CECxRCR1_CECDAT_P_6_FS ((uint32_t)0x00000030)
158 #define CECxRCR1_CECDAT_M_2_FS ((uint32_t)0x00000040)
159 #define CECxRCR1_CECDAT_M_4_FS ((uint32_t)0x00000050)
160 #define CECxRCR1_CECDAT_M_6_FS ((uint32_t)0x00000060) /* End of group CEC_DAT */
164 
170 #define CECxRCR1_CECTOUT_1BIT ((uint32_t)0x00000000)
171 #define CECxRCR1_CECTOUT_2BIT ((uint32_t)0x00000004)
172 #define CECxRCR1_CECTOUT_3BIT ((uint32_t)0x00000008) /* End of group CEC_TOUT */
176 
182 #define CECxRCR1_CECRIHLD_OFF ((uint32_t)0x00000000)
183 #define CECxRCR1_CECRIHLD_ON ((uint32_t)0x00000002) /* End of group CEC_RIHLD */
187 
193 #define CECxRCR1_CECOTH_OFF ((uint32_t)0x00000000)
194 #define CECxRCR1_CECOTH_ON ((uint32_t)0x00000001) /* End of group CEC_OTH */
198  /* End of group CECxRCR1 */
202 
203 /* ************************************************************************************ */
214 #define CECxRCR2_CECSWAV3_NONE ((uint32_t)0x00000000)
215 #define CECxRCR2_CECSWAV3_1_FS ((uint32_t)0x00001000)
216 #define CECxRCR2_CECSWAV3_2_FS ((uint32_t)0x00002000)
217 #define CECxRCR2_CECSWAV3_3_FS ((uint32_t)0x00003000)
218 #define CECxRCR2_CECSWAV3_4_FS ((uint32_t)0x00004000)
219 #define CECxRCR2_CECSWAV3_5_FS ((uint32_t)0x00005000)
220 #define CECxRCR2_CECSWAV3_6_FS ((uint32_t)0x00006000)
221 #define CECxRCR2_CECSWAV3_7_FS ((uint32_t)0x00007000) /* End of group CEC_START_FMAX */
225 
231 #define CECxRCR2_CECSWAV2_NONE ((uint32_t)0x00000000)
232 #define CECxRCR2_CECSWAV2_1_FS ((uint32_t)0x00000100)
233 #define CECxRCR2_CECSWAV2_2_FS ((uint32_t)0x00000200)
234 #define CECxRCR2_CECSWAV2_3_FS ((uint32_t)0x00000300)
235 #define CECxRCR2_CECSWAV2_4_FS ((uint32_t)0x00000400)
236 #define CECxRCR2_CECSWAV2_5_FS ((uint32_t)0x00000500)
237 #define CECxRCR2_CECSWAV2_6_FS ((uint32_t)0x00000600)
238 #define CECxRCR2_CECSWAV2_7_FS ((uint32_t)0x00000700) /* End of group CEC_START_FMIN */
242 
248 #define CECxRCR2_CECSWAV1_NONE ((uint32_t)0x00000000)
249 #define CECxRCR2_CECSWAV1_1_FS ((uint32_t)0x00000010)
250 #define CECxRCR2_CECSWAV1_2_FS ((uint32_t)0x00000020)
251 #define CECxRCR2_CECSWAV1_3_FS ((uint32_t)0x00000030)
252 #define CECxRCR2_CECSWAV1_4_FS ((uint32_t)0x00000040)
253 #define CECxRCR2_CECSWAV1_5_FS ((uint32_t)0x00000050)
254 #define CECxRCR2_CECSWAV1_6_FS ((uint32_t)0x00000060)
255 #define CECxRCR2_CECSWAV1_7_FS ((uint32_t)0x00000070) /* End of group CEC_START_RMAX */
259 
265 #define CECxRCR2_CECSWAV0_NONE ((uint32_t)0x00000000)
266 #define CECxRCR2_CECSWAV0_1_FS ((uint32_t)0x00000001)
267 #define CECxRCR2_CECSWAV0_2_FS ((uint32_t)0x00000002)
268 #define CECxRCR2_CECSWAV0_3_FS ((uint32_t)0x00000003)
269 #define CECxRCR2_CECSWAV0_4_FS ((uint32_t)0x00000004)
270 #define CECxRCR2_CECSWAV0_5_FS ((uint32_t)0x00000005)
271 #define CECxRCR2_CECSWAV0_6_FS ((uint32_t)0x00000006)
272 #define CECxRCR2_CECSWAV0_7_FS ((uint32_t)0x00000007) /* End of group CEC_START_RMIN */
276  /* End of group CECxRCR2 */
280 
281 /* ************************************************************************************ */
293 #define CECxRCR3_CECWAV3_NONE ((uint32_t)0x00000000)
294 #define CECxRCR3_CECWAV3_1_FS ((uint32_t)0x00100000)
295 #define CECxRCR3_CECWAV3_2_FS ((uint32_t)0x00200000)
296 #define CECxRCR3_CECWAV3_3_FS ((uint32_t)0x00300000)
297 #define CECxRCR3_CECWAV3_4_FS ((uint32_t)0x00400000)
298 #define CECxRCR3_CECWAV3_5_FS ((uint32_t)0x00500000)
299 #define CECxRCR3_CECWAV3_6_FS ((uint32_t)0x00600000)
300 #define CECxRCR3_CECWAV3_7_FS ((uint32_t)0x00700000) /* End of group CEC_DATA0_RMAX */
304 
310 #define CECxRCR3_CECWAV2_NONE ((uint32_t)0x00000000)
311 #define CECxRCR3_CECWAV2_1_FS ((uint32_t)0x00010000)
312 #define CECxRCR3_CECWAV2_2_FS ((uint32_t)0x00020000)
313 #define CECxRCR3_CECWAV2_3_FS ((uint32_t)0x00030000)
314 #define CECxRCR3_CECWAV2_4_FS ((uint32_t)0x00040000)
315 #define CECxRCR3_CECWAV2_5_FS ((uint32_t)0x00050000)
316 #define CECxRCR3_CECWAV2_6_FS ((uint32_t)0x00060000)
317 #define CECxRCR3_CECWAV2_7_FS ((uint32_t)0x00070000) /* End of group CEC_DATA0_RMIN */
321 
327 #define CECxRCR3_CECWAV1_NONE ((uint32_t)0x00000000)
328 #define CECxRCR3_CECWAV1_1_FS ((uint32_t)0x00001000)
329 #define CECxRCR3_CECWAV1_2_FS ((uint32_t)0x00002000)
330 #define CECxRCR3_CECWAV1_3_FS ((uint32_t)0x00003000)
331 #define CECxRCR3_CECWAV1_4_FS ((uint32_t)0x00004000)
332 #define CECxRCR3_CECWAV1_5_FS ((uint32_t)0x00005000)
333 #define CECxRCR3_CECWAV1_6_FS ((uint32_t)0x00006000)
334 #define CECxRCR3_CECWAV1_7_FS ((uint32_t)0x00007000) /* End of group CEC_DATA1_RMAX */
338 
344 #define CECxRCR3_CECWAV0_NONE ((uint32_t)0x00000000)
345 #define CECxRCR3_CECWAV0_1_FS ((uint32_t)0x00000100)
346 #define CECxRCR3_CECWAV0_2_FS ((uint32_t)0x00000200)
347 #define CECxRCR3_CECWAV0_3_FS ((uint32_t)0x00000300)
348 #define CECxRCR3_CECWAV0_4_FS ((uint32_t)0x00000400)
349 #define CECxRCR3_CECWAV0_5_FS ((uint32_t)0x00000500)
350 #define CECxRCR3_CECWAV0_6_FS ((uint32_t)0x00000600)
351 #define CECxRCR3_CECWAV0_7_FS ((uint32_t)0x00000700) /* End of group CEC_DATA1_RMIN */
355 
361 #define CECxRCR3_CECRSTAEN_DISABLE ((uint32_t)0x00000000)
362 #define CECxRCR3_CECRSTAEN_ENABLE ((uint32_t)0x00000002) /* End of group CEC_RSTAEN */
366 
372 #define CECxRCR3_CECWAVEN_DISABLE ((uint32_t)0x00000000)
373 #define CECxRCR3_CECWAVEN_ENABLE ((uint32_t)0x00000001) /* End of group CEC_WAVEEN */
377  /* End of group CECxRCR3 */
381 
382 /* ************************************************************************************ */
394 #define CECxTCR_CECSTRS_NONE ((uint32_t)0x00000000)
395 #define CECxTCR_CECSTRS_1_FS ((uint32_t)0x00100000)
396 #define CECxTCR_CECSTRS_2_FS ((uint32_t)0x00200000)
397 #define CECxTCR_CECSTRS_3_FS ((uint32_t)0x00300000)
398 #define CECxTCR_CECSTRS_4_FS ((uint32_t)0x00400000)
399 #define CECxTCR_CECSTRS_5_FS ((uint32_t)0x00500000)
400 #define CECxTCR_CECSTRS_6_FS ((uint32_t)0x00600000)
401 #define CECxTCR_CECSTRS_7_FS ((uint32_t)0x00700000) /* End of group CEC_STRS */
405 
411 #define CECxTCR_CECSPRD_NONE ((uint32_t)0x00000000)
412 #define CECxTCR_CECSPRD_1_FS ((uint32_t)0x00010000)
413 #define CECxTCR_CECSPRD_2_FS ((uint32_t)0x00020000)
414 #define CECxTCR_CECSPRD_3_FS ((uint32_t)0x00030000)
415 #define CECxTCR_CECSPRD_4_FS ((uint32_t)0x00040000)
416 #define CECxTCR_CECSPRD_5_FS ((uint32_t)0x00050000)
417 #define CECxTCR_CECSPRD_6_FS ((uint32_t)0x00060000)
418 #define CECxTCR_CECSPRD_7_FS ((uint32_t)0x00070000) /* End of group CEC_SPRD */
422 
428 #define CECxTCR_CECDTRS_NONE ((uint32_t)0x00000000)
429 #define CECxTCR_CECDTRS_1_FS ((uint32_t)0x00001000)
430 #define CECxTCR_CECDTRS_2_FS ((uint32_t)0x00002000)
431 #define CECxTCR_CECDTRS_3_FS ((uint32_t)0x00003000) /* End of group CEC_DTR2 */
435 
441 #define CECxTCR_CECDPRD_NONE ((uint32_t)0x00000000)
442 #define CECxTCR_CECDPRD_1_FS ((uint32_t)0x00000100)
443 #define CECxTCR_CECDPRD_2_FS ((uint32_t)0x00000200)
444 #define CECxTCR_CECDPRD_3_FS ((uint32_t)0x00000300)
445 #define CECxTCR_CECDPRD_4_FS ((uint32_t)0x00000400)
446 #define CECxTCR_CECDPRD_5_FS ((uint32_t)0x00000500)
447 #define CECxTCR_CECDPRD_6_FS ((uint32_t)0x00000600)
448 #define CECxTCR_CECDPRD_7_FS ((uint32_t)0x00000700)
449 #define CECxTCR_CECDPRD_8_FS ((uint32_t)0x00000800)
450 #define CECxTCR_CECDPRD_9_FS ((uint32_t)0x00000900)
451 #define CECxTCR_CECDPRD_10_FS ((uint32_t)0x00000A00)
452 #define CECxTCR_CECDPRD_11_FS ((uint32_t)0x00000B00)
453 #define CECxTCR_CECDPRD_12_FS ((uint32_t)0x00000C00)
454 #define CECxTCR_CECDPRD_13_FS ((uint32_t)0x00000D00)
455 #define CECxTCR_CECDPRD_14_FS ((uint32_t)0x00000E00)
456 #define CECxTCR_CECDPRD_15_FS ((uint32_t)0x00000F00) /* End of group CEC_DPRD */
460 
466 #define CECxTCR_CECBRD_OFF ((uint32_t)0x00000000)
467 #define CECxTCR_CECBRD_ON ((uint32_t)0x00000010) /* End of group CEC_BRD */
471 
477 #define CECxTCR_CECFREE_NONE ((uint32_t)0x00000000)
478 #define CECxTCR_CECFREE_1_BIT ((uint32_t)0x00000001)
479 #define CECxTCR_CECFREE_2_BIT ((uint32_t)0x00000002)
480 #define CECxTCR_CECFREE_3_BIT ((uint32_t)0x00000003)
481 #define CECxTCR_CECFREE_4_BIT ((uint32_t)0x00000004)
482 #define CECxTCR_CECFREE_5_BIT ((uint32_t)0x00000005)
483 #define CECxTCR_CECFREE_6_BIT ((uint32_t)0x00000006)
484 #define CECxTCR_CECFREE_7_BIT ((uint32_t)0x00000007)
485 #define CECxTCR_CECFREE_8_BIT ((uint32_t)0x00000008)
486 #define CECxTCR_CECFREE_9_BIT ((uint32_t)0x00000009)
487 #define CECxTCR_CECFREE_10_BIT ((uint32_t)0x0000000A)
488 #define CECxTCR_CECFREE_11_BIT ((uint32_t)0x0000000B)
489 #define CECxTCR_CECFREE_12_BIT ((uint32_t)0x0000000C)
490 #define CECxTCR_CECFREE_13_BIT ((uint32_t)0x0000000D)
491 #define CECxTCR_CECFREE_14_BIT ((uint32_t)0x0000000E)
492 #define CECxTCR_CECFREE_15_BIT ((uint32_t)0x0000000F) /* End of group CEC_FREE */
496  /* End of group CECxTCR */
500 /* ************************************************************************************ */
506 #define CECxRSTAT_CECRIBFOV_MASK ((uint32_t)0x80000000)
507 #define CECxRSTAT_CECRIBFOV_CLR ((uint32_t)0x00000000)
508 #define CECxRSTAT_CECRIBFOV_SET ((uint32_t)0x80000000)
509 #define CECxRSTAT_CECRIWAV_MASK ((uint32_t)0x00000040)
510 #define CECxRSTAT_CECRIWAV_CLR ((uint32_t)0x00000000)
511 #define CECxRSTAT_CECRIWAV_SET ((uint32_t)0x00000040)
512 #define CECxRSTAT_CECRIOR_MASK ((uint32_t)0x00000020)
513 #define CECxRSTAT_CECRIOR_CLR ((uint32_t)0x00000000)
514 #define CECxRSTAT_CECRIOR_SET ((uint32_t)0x00000020)
515 #define CECxRSTAT_CECRIACK_MASK ((uint32_t)0x00000010)
516 #define CECxRSTAT_CECRIACK_CLR ((uint32_t)0x00000000)
517 #define CECxRSTAT_CECRIACK_SET ((uint32_t)0x00000010)
518 #define CECxRSTAT_CECRIMIN_MASK ((uint32_t)0x00000008)
519 #define CECxRSTAT_CECRIMIN_CLR ((uint32_t)0x00000000)
520 #define CECxRSTAT_CECRIMIN_SET ((uint32_t)0x00000008)
521 #define CECxRSTAT_CECRIMAX_MASK ((uint32_t)0x00000004)
522 #define CECxRSTAT_CECRIMAX_CLR ((uint32_t)0x00000000)
523 #define CECxRSTAT_CECRIMAX_SET ((uint32_t)0x00000004)
524 #define CECxRSTAT_CECRISTA_MASK ((uint32_t)0x00000002)
525 #define CECxRSTAT_CECRISTA_CLR ((uint32_t)0x00000000)
526 #define CECxRSTAT_CECRISTA_SET ((uint32_t)0x00000002)
527 #define CECxRSTAT_CECRIEND_MASK ((uint32_t)0x00000001)
528 #define CECxRSTAT_CECRIEND_CLR ((uint32_t)0x00000000)
529 #define CECxRSTAT_CECRIEND_SET ((uint32_t)0x00000001) /* End of group CECxRSTAT */
533 
534 /* ************************************************************************************ */
540 #define CECxTSTAT_CECTIUR_MASK ((uint32_t)0x00000010)
541 #define CECxTSTAT_CECTIUR_CLR ((uint32_t)0x00000000)
542 #define CECxTSTAT_CECTIUR_SET ((uint32_t)0x00000010)
543 #define CECxTSTAT_CECTIACK_MASK ((uint32_t)0x00000008)
544 #define CECxTSTAT_CECTIACK_CLR ((uint32_t)0x00000000)
545 #define CECxTSTAT_CECTIACK_SET ((uint32_t)0x00000008)
546 #define CECxTSTAT_CECTIAL_MASK ((uint32_t)0x00000004)
547 #define CECxTSTAT_CECTIAL_CLR ((uint32_t)0x00000000)
548 #define CECxTSTAT_CECTIAL_SET ((uint32_t)0x00000004)
549 #define CECxTSTAT_CECTIEND_MASK ((uint32_t)0x00000002)
550 #define CECxTSTAT_CECTIEND_CLR ((uint32_t)0x00000000)
551 #define CECxTSTAT_CECTIEND_SET ((uint32_t)0x00000002)
552 #define CECxTSTAT_CECTISTA_MASK ((uint32_t)0x00000001)
553 #define CECxTSTAT_CECTISTA_CLR ((uint32_t)0x00000000)
554 #define CECxTSTAT_CECTISTA_SET ((uint32_t)0x00000001) /* End of group CECxTSTAT */
558 
559 
560 /* ************************************************************************************ */
566 #define CECxFSSEL_CECCLK_FS ((uint32_t)0x00000000)
567 #define CECxFSSEL_CECCLK_TBXOUT ((uint32_t)0x00000001) /* End of group CECxFSSEL */
571 
572 
573  /* End of group CEC_Exported_define */
577 
578 /*------------------------------------------------------------------------------*/
579 /* Enumerated Type Definition */
580 /*------------------------------------------------------------------------------*/
586 /* no define */
587  /* End of group CEC_Exported_define */
591 
592 /*------------------------------------------------------------------------------*/
593 /* Structure Definition */
594 /*------------------------------------------------------------------------------*/
600 /*----------------------------------*/
604 /*----------------------------------*/
605 typedef struct
606 {
607  uint8_t *p_data;
608  uint32_t num;
609 } cec_receive_t;
610 
611 /*----------------------------------*/
615 /*----------------------------------*/
616 typedef struct
617 {
618  uint8_t *p_data;
619  uint32_t num;
620  uint32_t broadcast;
622 
623 
624 /*----------------------------------*/
628 /*----------------------------------*/
629 typedef struct
630 {
631  uint32_t id;
632  uint32_t logical_address;
634  uint32_t ack_disable;
635  uint32_t high_noise_cancel;
636  uint32_t low_noise_cancel;
637  uint32_t interval_min;
638  uint32_t interval_max;
639  uint32_t data_point;
640  uint32_t time_out;
642  uint32_t mismach_receive;
649  uint32_t data_0_rise_max;
650  uint32_t data_0_rise_min;
651  uint32_t data_1_rise_max;
652  uint32_t data_1_rise_min;
653  uint32_t start_bit_enable;
654  uint32_t wav_error_enable;
660  uint32_t bus_free_wait;
662  uint32_t clk;
665 
666 /*----------------------------------*/
670 /*----------------------------------*/
671 typedef struct
672 {
673  TSB_CEC_TypeDef *p_instance;
675  /*------------------------------------------*/
679  /*------------------------------------------*/
680  struct
681  {
682  uint32_t rp;
684  void (*handler)(uint32_t id, TXZ_Result result, uint32_t tx_status);
685  } transmit;
686  /*------------------------------------------*/
690  /*------------------------------------------*/
691  struct
692  {
693  uint32_t wp;
695  void (*handler)(uint32_t id, TXZ_Result result, cec_receive_t *p_info, uint32_t rx_status);
696  } receive;
697 } cec_t;
698  /* End of group CEC_Exported_typedef */
702 
703 /*------------------------------------------------------------------------------*/
704 /* Functions */
705 /*------------------------------------------------------------------------------*/
710 TXZ_Result cec_init(cec_t *p_obj);
711 TXZ_Result cec_deinit(cec_t *p_obj);
716 void cec_transmit_irq_handler(cec_t *p_obj);
717 void cec_receive_irq_handler(cec_t *p_obj);
718 TXZ_Result cec_get_tx_status(cec_t *p_obj, uint32_t *p_tx_status);
719 TXZ_Result cec_get_rx_status(cec_t *p_obj, uint32_t *p_rx_status); /* End of group CEC_Exported_functions */
723  /* End of group CEC */
727  /* End of group Periph_Driver */
731 
732 #ifdef __cplusplus
733 }
734 #endif /* __cplusplus */
735 #endif /* __CEC_H */
736 
737 
uint32_t clk
Definition: txz_cec.h:662
Transmit data information structure definition.
Definition: txz_cec.h:616
uint32_t interval_max
Definition: txz_cec.h:638
uint32_t time_out
Definition: txz_cec.h:640
uint8_t * p_data
Definition: txz_cec.h:618
uint8_t * p_data
Definition: txz_cec.h:607
TXZ_Result cec_init(cec_t *p_obj)
void cec_transmit_irq_handler(cec_t *p_obj)
uint32_t rp
Definition: txz_cec.h:682
TXZ_Result
Definition: txz_driver_def.h:43
CEC handle structure definition.
Definition: txz_cec.h:671
uint32_t interval_min
Definition: txz_cec.h:637
uint32_t wav_error_enable
Definition: txz_cec.h:654
uint32_t start_bit_rise_max
Definition: txz_cec.h:646
uint32_t num
Definition: txz_cec.h:608
TXZ_Result cec_get_tx_status(cec_t *p_obj, uint32_t *p_tx_status)
TXZ_Result cec_discard_transmit(cec_t *p_obj)
uint32_t broadcast
Definition: txz_cec.h:620
TXZ_Result cec_transmitIt(cec_t *p_obj, cec_transmit_t *p_info)
uint32_t start_bit_interval_timing
Definition: txz_cec.h:657
cec_transmit_t info
Definition: txz_cec.h:683
uint32_t start_bit_fall_min
Definition: txz_cec.h:645
cec_receive_t info
Definition: txz_cec.h:694
void cec_receive_irq_handler(cec_t *p_obj)
cec_initial_setting_t init
Definition: txz_cec.h:674
uint32_t high_noise_cancel
Definition: txz_cec.h:635
uint32_t start_bit_enable
Definition: txz_cec.h:653
uint32_t bus_free_wait
Definition: txz_cec.h:660
TXZ_Result cec_discard_receive(cec_t *p_obj)
uint32_t id
Definition: txz_cec.h:631
All common macro and definition for TXZ peripheral drivers.
TXZ_Result cec_receiveIt(cec_t *p_obj, cec_receive_t *p_info)
TXZ_Result cec_deinit(cec_t *p_obj)
uint32_t ack_disable
Definition: txz_cec.h:634
uint32_t start_bit_fall_max
Definition: txz_cec.h:644
uint32_t receive_error_hold
Definition: txz_cec.h:641
uint32_t data_1_rise_max
Definition: txz_cec.h:651
uint32_t num
Definition: txz_cec.h:619
uint32_t low_noise_cancel
Definition: txz_cec.h:636
uint32_t wp
Definition: txz_cec.h:693
uint32_t start_bit_rise_timing
Definition: txz_cec.h:656
uint32_t start_bit_rise_min
Definition: txz_cec.h:647
uint32_t logical_address
Definition: txz_cec.h:632
uint32_t data_point
Definition: txz_cec.h:639
Receive event information structure definition.
Definition: txz_cec.h:605
Initial setting structure definition.
Definition: txz_cec.h:629
TXZ_Result cec_get_rx_status(cec_t *p_obj, uint32_t *p_rx_status)
uint32_t data_0_rise_min
Definition: txz_cec.h:650
uint32_t data_bit_interval_timing
Definition: txz_cec.h:659
uint32_t data_0_rise_max
Definition: txz_cec.h:649
TSB_CEC_TypeDef * p_instance
Definition: txz_cec.h:673
uint32_t data_1_rise_min
Definition: txz_cec.h:652
uint32_t data_bit_rise_timing
Definition: txz_cec.h:658
uint32_t mismach_receive
Definition: txz_cec.h:642