Searched refs:eadc (Results 1 – 4 of 4) sorted by relevance
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/inc/ |
D | eadc.h | 103 #define EADC_CONV_RESET(eadc) ((eadc)->CTL |= EADC_CTL_ADCRST_Msk) argument 113 #define EADC_ENABLE_PDMA(eadc) ((eadc)->CTL |= EADC_CTL_PDMAEN_Msk) argument 121 #define EADC_DISABLE_PDMA(eadc) ((eadc)->CTL &= (~EADC_CTL_PDMAEN_Msk)) argument 131 #define EADC_ENABLE_DOUBLE_BUFFER(eadc, u32ModuleNum) ((eadc)->SCTL[(u32ModuleNum)] |= EADC_SCTL_DB… argument 140 #define EADC_DISABLE_DOUBLE_BUFFER(eadc, u32ModuleNum) ((eadc)->SCTL[(u32ModuleNum)] &= ~EADC_SCTL_… argument 149 #define EADC_ENABLE_INT_POSITION(eadc, u32ModuleNum) ((eadc)->SCTL[(u32ModuleNum)] |= EADC_SCTL_INT… argument 158 #define EADC_DISABLE_INT_POSITION(eadc, u32ModuleNum) ((eadc)->SCTL[(u32ModuleNum)] &= ~EADC_SCTL_I… argument 169 #define EADC_ENABLE_INT(eadc, u32Mask) ((eadc)->CTL |= ((u32Mask) << EADC_CTL_ADCIEN0_Pos)) argument 179 #define EADC_DISABLE_INT(eadc, u32Mask) ((eadc)->CTL &= ~((u32Mask) << EADC_CTL_ADCIEN0_Pos)) argument 190 #define EADC_ENABLE_SAMPLE_MODULE_INT(eadc, u32IntSel, u32ModuleMask) ((eadc)->INTSRC[(u32IntSel)] … argument [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/ |
D | eadc.h | 105 #define EADC_CONV_RESET(eadc) ((eadc)->CTL |= EADC_CTL_ADCRST_Msk) argument 117 #define EADC_ENABLE_SAMPLE_MODULE_PDMA(eadc, u32ModuleMask) ((eadc)->PDMACTL |= u32ModuleMask) argument 128 #define EADC_DISABLE_SAMPLE_MODULE_PDMA(eadc, u32ModuleMask) ((eadc)->PDMACTL &= (~u32ModuleMask)) argument 138 #define EADC_ENABLE_DOUBLE_BUFFER(eadc, u32ModuleNum) ((eadc)->SCTL[(u32ModuleNum)] |= EADC_SCTL_DB… argument 147 #define EADC_DISABLE_DOUBLE_BUFFER(eadc, u32ModuleNum) ((eadc)->SCTL[(u32ModuleNum)] &= ~EADC_SCTL_… argument 156 #define EADC_ENABLE_INT_POSITION(eadc, u32ModuleNum) ((eadc)->SCTL[(u32ModuleNum)] |= EADC_SCTL_INT… argument 165 #define EADC_DISABLE_INT_POSITION(eadc, u32ModuleNum) ((eadc)->SCTL[(u32ModuleNum)] &= ~EADC_SCTL_I… argument 176 #define EADC_ENABLE_INT(eadc, u32Mask) ((eadc)->CTL |= ((u32Mask) << EADC_CTL_ADCIEN0_Pos)) argument 186 #define EADC_DISABLE_INT(eadc, u32Mask) ((eadc)->CTL &= ~((u32Mask) << EADC_CTL_ADCIEN0_Pos)) argument 197 #define EADC_ENABLE_SAMPLE_MODULE_INT(eadc, u32IntSel, u32ModuleMask) ((eadc)->INTSRC[(u32IntSel)] … argument [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/ |
D | eadc.c | 34 void EADC_Open(EADC_T *eadc, uint32_t u32InputMode) in EADC_Open() argument 36 eadc->CTL &= (~(EADC_CTL_DIFFEN_Msk)); in EADC_Open() 38 eadc->CTL |= (u32InputMode | EADC_CTL_ADCEN_Msk); in EADC_Open() 40 while(!(eadc->PWRM & EADC_PWRM_PWUPRDY_Msk)) {} in EADC_Open() 49 void EADC_Close(EADC_T *eadc) in EADC_Close() argument 51 eadc->CTL &= ~EADC_CTL_ADCEN_Msk; in EADC_Close() 88 void EADC_ConfigSampleModule(EADC_T *eadc, \ in EADC_ConfigSampleModule() argument 93 …eadc->SCTL[u32ModuleNum] &= ~(EADC_SCTL_EXTFEN_Msk | EADC_SCTL_EXTREN_Msk | EADC_SCTL_TRGSEL_Msk |… in EADC_ConfigSampleModule() 94 eadc->SCTL[u32ModuleNum] |= (u32TriggerSrc | u32Channel); in EADC_ConfigSampleModule() 112 void EADC_SetTriggerDelayTime(EADC_T *eadc, \ in EADC_SetTriggerDelayTime() argument [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/ |
D | eadc.c | 34 void EADC_Open(EADC_T *eadc, uint32_t u32InputMode) in EADC_Open() argument 36 eadc->CTL &= (~(EADC_CTL_DIFFEN_Msk)); in EADC_Open() 38 eadc->CTL |= (u32InputMode | EADC_CTL_ADCEN_Msk); in EADC_Open() 40 while(!(eadc->PWRM & EADC_PWRM_PWUPRDY_Msk)) {} in EADC_Open() 49 void EADC_Close(EADC_T *eadc) in EADC_Close() argument 51 eadc->CTL &= ~EADC_CTL_ADCEN_Msk; in EADC_Close() 88 void EADC_ConfigSampleModule(EADC_T *eadc, \ in EADC_ConfigSampleModule() argument 93 …eadc->SCTL[u32ModuleNum] &= ~(EADC_SCTL_EXTFEN_Msk | EADC_SCTL_EXTREN_Msk | EADC_SCTL_TRGSEL_Msk |… in EADC_ConfigSampleModule() 94 eadc->SCTL[u32ModuleNum] |= (u32TriggerSrc | u32Channel); in EADC_ConfigSampleModule() 112 void EADC_SetTriggerDelayTime(EADC_T *eadc, \ in EADC_SetTriggerDelayTime() argument [all …]
|