/* Specifies the condition of compare value buffer transmission.  */
void TMRA_SetCompareBufCond(CM_TMRA_TypeDef *TMRAx, uint32_t u32Ch, uint16_t u16Cond)
/* Specifies the condition of compare value buffer transmission.  */
void TMRA_SetCompareBufCond(CM_TMRA_TypeDef *TMRAx, uint32_t u32Ch, uint16_t u16Cond)
{
    uint32_t u32BCONRAddr;
    DDL_ASSERT(IS_TMRA_UNIT(TMRAx));
    DDL_ASSERT(IS_TMRA_CMPVAL_BUF_CH(u32Ch));
    DDL_ASSERT(IS_TMRA_BUF_TRANS_COND(u16Cond));
    u32BCONRAddr = (uint32_t)&TMRAx->BCONR1 + u32Ch * 4U;
    MODIFY_REG16(RW_MEM16(u32BCONRAddr), TMRA_BUF_TRANS_COND_PEAK_VALLEY, u16Cond);
}