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) 83 #define CECxRCR1_CECACKDIS_ACK_ON ((uint32_t)0x00000000) 84 #define CECxRCR1_CECACKDIS_ACK_OFF ((uint32_t)0x01000000) 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) 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) 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) 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) 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) 170 #define CECxRCR1_CECTOUT_1BIT ((uint32_t)0x00000000) 171 #define CECxRCR1_CECTOUT_2BIT ((uint32_t)0x00000004) 172 #define CECxRCR1_CECTOUT_3BIT ((uint32_t)0x00000008) 182 #define CECxRCR1_CECRIHLD_OFF ((uint32_t)0x00000000) 183 #define CECxRCR1_CECRIHLD_ON ((uint32_t)0x00000002) 193 #define CECxRCR1_CECOTH_OFF ((uint32_t)0x00000000) 194 #define CECxRCR1_CECOTH_ON ((uint32_t)0x00000001) 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) 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) 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) 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) 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) 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) 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) 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) 361 #define CECxRCR3_CECRSTAEN_DISABLE ((uint32_t)0x00000000) 362 #define CECxRCR3_CECRSTAEN_ENABLE ((uint32_t)0x00000002) 372 #define CECxRCR3_CECWAVEN_DISABLE ((uint32_t)0x00000000) 373 #define CECxRCR3_CECWAVEN_ENABLE ((uint32_t)0x00000001) 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) 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) 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) 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) 466 #define CECxTCR_CECBRD_OFF ((uint32_t)0x00000000) 467 #define CECxTCR_CECBRD_ON ((uint32_t)0x00000010) 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) 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) 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) 566 #define CECxFSSEL_CECCLK_FS ((uint32_t)0x00000000) 567 #define CECxFSSEL_CECCLK_TBXOUT ((uint32_t)0x00000001) 684 void (*handler)(uint32_t id,
TXZ_Result result, uint32_t tx_status);
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