Lines Matching refs:ch_num
652 …d XMC_VADC_GROUP_EnableChannelSyncRequest(XMC_VADC_GROUP_t *const group_ptr, const uint32_t ch_num) in XMC_VADC_GROUP_EnableChannelSyncRequest() argument
658 ((ch_num) < XMC_VADC_NUM_CHANNELS_PER_GROUP)) in XMC_VADC_GROUP_EnableChannelSyncRequest()
664 group_ptr->CHCTR[ch_num] |= (uint32_t)((uint32_t)1 << VADC_G_CHCTR_SYNC_Pos); in XMC_VADC_GROUP_EnableChannelSyncRequest()
669 … XMC_VADC_GROUP_DisableChannelSyncRequest(XMC_VADC_GROUP_t *const group_ptr, const uint32_t ch_num) in XMC_VADC_GROUP_DisableChannelSyncRequest() argument
675 ((ch_num) < XMC_VADC_NUM_CHANNELS_PER_GROUP)) in XMC_VADC_GROUP_DisableChannelSyncRequest()
681 group_ptr->CHCTR[ch_num] &= ~((uint32_t)VADC_G_CHCTR_SYNC_Msk); in XMC_VADC_GROUP_DisableChannelSyncRequest()
888 uint8_t ch_num) in XMC_VADC_GLOBAL_SHS_SetGainFactor() argument
896 ch_mask = ((uint32_t)ch_num << (uint32_t)2); in XMC_VADC_GLOBAL_SHS_SetGainFactor()
1028 uint8_t ch_num) in XMC_VADC_GLOBAL_SHS_SetSigmaDeltaLoop() argument
1037 ((ch_num) < XMC_VADC_NUM_CHANNELS_PER_GROUP)) in XMC_VADC_GLOBAL_SHS_SetSigmaDeltaLoop()
1041 …shs_ptr->LOOP |= ((uint32_t)ch_num | ((uint32_t)group_num << (uint32_t)SHS_LOOP_LPSH0_Pos)) << (ui… in XMC_VADC_GLOBAL_SHS_SetSigmaDeltaLoop()
1604 int32_t ch_num; in XMC_VADC_GROUP_QueueGetNextChannel() local
1614 ch_num = (int32_t)(group_ptr->QBUR0 & (uint32_t)VADC_G_QBUR0_REQCHNR_Msk); in XMC_VADC_GROUP_QueueGetNextChannel()
1618 ch_num = (int32_t)(group_ptr->Q0R0 & (uint32_t)VADC_G_Q0R0_REQCHNR_Msk); in XMC_VADC_GROUP_QueueGetNextChannel()
1623 ch_num = -1; in XMC_VADC_GROUP_QueueGetNextChannel()
1626 return ch_num; in XMC_VADC_GROUP_QueueGetNextChannel()
1632 int32_t ch_num; in XMC_VADC_GROUP_QueueGetInterruptedChannel() local
1638 ch_num = (int32_t)(group_ptr->QBUR0 & (uint32_t)VADC_G_QBUR0_REQCHNR_Msk); in XMC_VADC_GROUP_QueueGetInterruptedChannel()
1643 ch_num = -1; in XMC_VADC_GROUP_QueueGetInterruptedChannel()
1646 return ch_num; in XMC_VADC_GROUP_QueueGetInterruptedChannel()
1669 void XMC_VADC_GROUP_ChannelInit(XMC_VADC_GROUP_t *const group_ptr, const uint32_t ch_num, in XMC_VADC_GROUP_ChannelInit() argument
1678 …XMC_ASSERT("XMC_VADC_GROUP_ChannelInit:Wrong Channel Number", ((ch_num) < XMC_VADC_NUM_CHANNELS_PE… in XMC_VADC_GROUP_ChannelInit()
1684 ch_assign &= ~((uint32_t)((uint32_t)1 << ch_num)); in XMC_VADC_GROUP_ChannelInit()
1685 ch_assign |= (uint32_t)(prio << ch_num); in XMC_VADC_GROUP_ChannelInit()
1692 if ((uint32_t)1 == ch_num) in XMC_VADC_GROUP_ChannelInit()
1697 else if ((uint32_t)0 == ch_num) in XMC_VADC_GROUP_ChannelInit()
1712 group_ptr->CHCTR[ch_num] = config->chctr; in XMC_VADC_GROUP_ChannelInit()
1717 …XMC_VADC_GROUP_ChannelIsResultOutOfBounds(XMC_VADC_GROUP_t *const group_ptr, const uint32_t ch_num) in XMC_VADC_GROUP_ChannelIsResultOutOfBounds() argument
1725 ((ch_num) < XMC_VADC_NUM_CHANNELS_PER_GROUP)) in XMC_VADC_GROUP_ChannelIsResultOutOfBounds()
1733 chctr = group_ptr->CHCTR[ch_num]; in XMC_VADC_GROUP_ChannelIsResultOutOfBounds()
1738 ceflag = ceflag & ((uint32_t)((uint32_t)1 << ch_num) ); in XMC_VADC_GROUP_ChannelIsResultOutOfBounds()
1752 const uint32_t ch_num, in XMC_VADC_GROUP_ChannelSetInputReference() argument
1757 …XMC_ASSERT("XMC_VADC_GROUP_ChannelSetInputReference:Wrong Channel Number", ((ch_num) < XMC_VADC_NU… in XMC_VADC_GROUP_ChannelSetInputReference()
1760 chctr = group_ptr->CHCTR[ch_num]; in XMC_VADC_GROUP_ChannelSetInputReference()
1764 group_ptr->CHCTR[ch_num] = chctr; in XMC_VADC_GROUP_ChannelSetInputReference()
1769 const uint32_t ch_num, in XMC_VADC_GROUP_ChannelSetResultRegister() argument
1776 ((ch_num) < XMC_VADC_NUM_CHANNELS_PER_GROUP)) in XMC_VADC_GROUP_ChannelSetResultRegister()
1780 chctr = group_ptr->CHCTR[ch_num]; in XMC_VADC_GROUP_ChannelSetResultRegister()
1784 group_ptr->CHCTR[ch_num] = chctr; in XMC_VADC_GROUP_ChannelSetResultRegister()
1789 const uint32_t ch_num, in XMC_VADC_GROUP_ChannelSetIclass() argument
1797 ((ch_num) < XMC_VADC_NUM_CHANNELS_PER_GROUP)) in XMC_VADC_GROUP_ChannelSetIclass()
1801 chctr = group_ptr->CHCTR[ch_num]; in XMC_VADC_GROUP_ChannelSetIclass()
1805 group_ptr->CHCTR[ch_num] = chctr; in XMC_VADC_GROUP_ChannelSetIclass()
1810 …t XMC_VADC_GROUP_ChannelGetResultRegister(XMC_VADC_GROUP_t *const group_ptr, const uint32_t ch_num) in XMC_VADC_GROUP_ChannelGetResultRegister() argument
1816 ((ch_num) < XMC_VADC_NUM_CHANNELS_PER_GROUP)) in XMC_VADC_GROUP_ChannelGetResultRegister()
1818 …resreg = (uint8_t)((group_ptr->CHCTR[ch_num] & (uint32_t)VADC_G_CHCTR_RESREG_Msk) >> VADC_G_CHCTR_… in XMC_VADC_GROUP_ChannelGetResultRegister()
1824 void XMC_VADC_GROUP_ChannelTriggerEvent(XMC_VADC_GROUP_t *const group_ptr, const uint32_t ch_num) in XMC_VADC_GROUP_ChannelTriggerEvent() argument
1829 …XMC_ASSERT("XMC_VADC_GROUP_ChannelTriggerEvent:Wrong Channel Number", ((ch_num) < XMC_VADC_NUM_CHA… in XMC_VADC_GROUP_ChannelTriggerEvent()
1832 ceflag |= (uint32_t)((uint32_t)1 << ch_num); in XMC_VADC_GROUP_ChannelTriggerEvent()
1838 const uint32_t ch_num, in XMC_VADC_GROUP_ChannelSetEventInterruptNode() argument
1845 ((ch_num) < XMC_VADC_NUM_CHANNELS_PER_GROUP)) in XMC_VADC_GROUP_ChannelSetEventInterruptNode()
1849 route_mask &= ~((uint32_t)15 << (ch_num * (uint32_t)4)); in XMC_VADC_GROUP_ChannelSetEventInterruptNode()
1850 route_mask |= (uint32_t)( (uint32_t)sr << (ch_num * (uint32_t)4)); in XMC_VADC_GROUP_ChannelSetEventInterruptNode()
1856 const uint32_t ch_num, in XMC_VADC_GROUP_ChannelTriggerEventGenCriteria() argument
1863 ((ch_num) < XMC_VADC_NUM_CHANNELS_PER_GROUP)) in XMC_VADC_GROUP_ChannelTriggerEventGenCriteria()
1867 chctr = group_ptr->CHCTR[ch_num]; in XMC_VADC_GROUP_ChannelTriggerEventGenCriteria()
1870 group_ptr->CHCTR[ch_num] = chctr; in XMC_VADC_GROUP_ChannelTriggerEventGenCriteria()
1875 const uint32_t ch_num, in XMC_VADC_GROUP_ChannelSetBoundarySelection() argument
1881 ((ch_num) < XMC_VADC_NUM_CHANNELS_PER_GROUP)) in XMC_VADC_GROUP_ChannelSetBoundarySelection()
1883 group_ptr->CHCTR[ch_num] &= ~((uint32_t)VADC_G_CHCTR_BNDSELL_Msk << boundary_sel); in XMC_VADC_GROUP_ChannelSetBoundarySelection()
1884 …group_ptr->CHCTR[ch_num] |= (selection<< ((uint32_t)VADC_G_CHCTR_BNDSELL_Pos + (uint32_t)boundary_… in XMC_VADC_GROUP_ChannelSetBoundarySelection()