Lines Matching refs:selectedPins

65 void GPIO_setAsOutputPin(uint_fast8_t selectedPort, uint_fast16_t selectedPins)  in GPIO_setAsOutputPin()  argument
69 HWREG16(baseAddress + OFS_LIB_PASEL0) &= ~selectedPins; in GPIO_setAsOutputPin()
70 HWREG16(baseAddress + OFS_LIB_PASEL1) &= ~selectedPins; in GPIO_setAsOutputPin()
71 HWREG16(baseAddress + OFS_LIB_PADIR) |= selectedPins; in GPIO_setAsOutputPin()
75 void GPIO_setAsInputPin(uint_fast8_t selectedPort, uint_fast16_t selectedPins) in GPIO_setAsInputPin() argument
79 HWREG16(baseAddress + OFS_LIB_PASEL0) &= ~selectedPins; in GPIO_setAsInputPin()
80 HWREG16(baseAddress + OFS_LIB_PASEL1) &= ~selectedPins; in GPIO_setAsInputPin()
81 HWREG16(baseAddress + OFS_LIB_PADIR) &= ~selectedPins; in GPIO_setAsInputPin()
82 HWREG16(baseAddress + OFS_LIB_PAREN) &= ~selectedPins; in GPIO_setAsInputPin()
87 uint_fast16_t selectedPins, uint_fast8_t mode) in GPIO_setAsPeripheralModuleFunctionOutputPin() argument
92 HWREG16(baseAddress + OFS_LIB_PADIR) |= selectedPins; in GPIO_setAsPeripheralModuleFunctionOutputPin()
96 HWREG16(baseAddress + OFS_LIB_PASEL0) |= selectedPins; in GPIO_setAsPeripheralModuleFunctionOutputPin()
97 HWREG16(baseAddress + OFS_LIB_PASEL1) &= ~selectedPins; in GPIO_setAsPeripheralModuleFunctionOutputPin()
100 HWREG16(baseAddress + OFS_LIB_PASEL0) &= ~selectedPins; in GPIO_setAsPeripheralModuleFunctionOutputPin()
101 HWREG16(baseAddress + OFS_LIB_PASEL1) |= selectedPins; in GPIO_setAsPeripheralModuleFunctionOutputPin()
104 HWREG16(baseAddress + OFS_LIB_PASEL0) |= selectedPins; in GPIO_setAsPeripheralModuleFunctionOutputPin()
105 HWREG16(baseAddress + OFS_LIB_PASEL1) |= selectedPins; in GPIO_setAsPeripheralModuleFunctionOutputPin()
112 uint_fast16_t selectedPins, uint_fast8_t mode) in GPIO_setAsPeripheralModuleFunctionInputPin() argument
116 HWREG16(baseAddress + OFS_LIB_PADIR) &= ~selectedPins; in GPIO_setAsPeripheralModuleFunctionInputPin()
120 HWREG16(baseAddress + OFS_LIB_PASEL0) |= selectedPins; in GPIO_setAsPeripheralModuleFunctionInputPin()
121 HWREG16(baseAddress + OFS_LIB_PASEL1) &= ~selectedPins; in GPIO_setAsPeripheralModuleFunctionInputPin()
124 HWREG16(baseAddress + OFS_LIB_PASEL0) &= ~selectedPins; in GPIO_setAsPeripheralModuleFunctionInputPin()
125 HWREG16(baseAddress + OFS_LIB_PASEL1) |= selectedPins; in GPIO_setAsPeripheralModuleFunctionInputPin()
128 HWREG16(baseAddress + OFS_LIB_PASEL0) |= selectedPins; in GPIO_setAsPeripheralModuleFunctionInputPin()
129 HWREG16(baseAddress + OFS_LIB_PASEL1) |= selectedPins; in GPIO_setAsPeripheralModuleFunctionInputPin()
136 uint_fast16_t selectedPins) in GPIO_setOutputHighOnPin() argument
141 HWREG16(baseAddress + OFS_LIB_PAOUT) |= selectedPins; in GPIO_setOutputHighOnPin()
146 uint_fast16_t selectedPins) in GPIO_setOutputLowOnPin() argument
151 HWREG16(baseAddress + OFS_LIB_PAOUT) &= ~selectedPins; in GPIO_setOutputLowOnPin()
156 uint_fast16_t selectedPins) in GPIO_toggleOutputOnPin() argument
161 HWREG16(baseAddress + OFS_LIB_PAOUT) ^= selectedPins; in GPIO_toggleOutputOnPin()
166 uint_fast16_t selectedPins) in GPIO_setAsInputPinWithPullDownResistor() argument
171 HWREG16(baseAddress + OFS_LIB_PASEL0) &= ~selectedPins; in GPIO_setAsInputPinWithPullDownResistor()
172 HWREG16(baseAddress + OFS_LIB_PASEL1) &= ~selectedPins; in GPIO_setAsInputPinWithPullDownResistor()
174 HWREG16(baseAddress + OFS_LIB_PADIR) &= ~selectedPins; in GPIO_setAsInputPinWithPullDownResistor()
175 HWREG16(baseAddress + OFS_LIB_PAREN) |= selectedPins; in GPIO_setAsInputPinWithPullDownResistor()
176 HWREG16(baseAddress + OFS_LIB_PAOUT) &= ~selectedPins; in GPIO_setAsInputPinWithPullDownResistor()
181 uint_fast16_t selectedPins) in GPIO_setAsInputPinWithPullUpResistor() argument
186 HWREG16(baseAddress + OFS_LIB_PASEL0) &= ~selectedPins; in GPIO_setAsInputPinWithPullUpResistor()
187 HWREG16(baseAddress + OFS_LIB_PASEL1) &= ~selectedPins; in GPIO_setAsInputPinWithPullUpResistor()
188 HWREG16(baseAddress + OFS_LIB_PADIR) &= ~selectedPins; in GPIO_setAsInputPinWithPullUpResistor()
189 HWREG16(baseAddress + OFS_LIB_PAREN) |= selectedPins; in GPIO_setAsInputPinWithPullUpResistor()
190 HWREG16(baseAddress + OFS_LIB_PAOUT) |= selectedPins; in GPIO_setAsInputPinWithPullUpResistor()
195 uint_fast16_t selectedPins) in GPIO_getInputPinValue() argument
200 inputPinValue = HWREG16(baseAddress + OFS_LIB_PAIN) & (selectedPins); in GPIO_getInputPinValue()
208 void GPIO_enableInterrupt(uint_fast8_t selectedPort, uint_fast16_t selectedPins) in GPIO_enableInterrupt() argument
213 HWREG16(baseAddress + OFS_LIB_PAIE) |= selectedPins; in GPIO_enableInterrupt()
218 uint_fast16_t selectedPins) in GPIO_disableInterrupt() argument
223 HWREG16(baseAddress + OFS_LIB_PAIE) &= ~selectedPins; in GPIO_disableInterrupt()
228 uint_fast16_t selectedPins) in GPIO_getInterruptStatus() argument
233 return HWREG16(baseAddress + OFS_LIB_PAIFG) & selectedPins; in GPIO_getInterruptStatus()
238 uint_fast16_t selectedPins) in GPIO_clearInterruptFlag() argument
244 HWREG16(baseAddress + OFS_LIB_PAIFG) &= ~selectedPins; in GPIO_clearInterruptFlag()
249 uint_fast16_t selectedPins, uint_fast8_t edgeSelect) in GPIO_interruptEdgeSelect() argument
256 HWREG16(baseAddress + OFS_LIB_PAIES) &= ~selectedPins; in GPIO_interruptEdgeSelect()
258 HWREG16(baseAddress + OFS_LIB_PAIES) |= selectedPins; in GPIO_interruptEdgeSelect()
294 uint_fast8_t selectedPins) in GPIO_setDriveStrengthHigh() argument
300 HWREG8(baseAddr + OFS_LIB_PADS) |= selectedPins; in GPIO_setDriveStrengthHigh()
305 uint_fast8_t selectedPins) in GPIO_setDriveStrengthLow() argument
311 HWREG8(baseAddr + OFS_LIB_PADS) &= ~selectedPins; in GPIO_setDriveStrengthLow()