![]() |
![]() |
|
MSPM0G1X0X_G3X0X Driver Library
1.10.01.05
|
|
Modules | |
| DL_GPIO_PIN | |
| DL_GPIO_EDGE_POLARITY | |
| DL_GPIO_INPUT_FILTER | |
Functions | |
| __STATIC_INLINE void | DL_GPIO_enablePower (GPIO_Regs *gpio) |
| Enables power on GPIO module. More... | |
| __STATIC_INLINE void | DL_GPIO_disablePower (GPIO_Regs *gpio) |
| Disables power on gpio module. More... | |
| __STATIC_INLINE bool | DL_GPIO_isPowerEnabled (GPIO_Regs *gpio) |
| Returns if power on gpio module. More... | |
| __STATIC_INLINE void | DL_GPIO_reset (GPIO_Regs *gpio) |
| Resets gpio peripheral. More... | |
| __STATIC_INLINE bool | DL_GPIO_isReset (GPIO_Regs *gpio) |
| Returns if gpio peripheral was reset. More... | |
| __STATIC_INLINE void | DL_GPIO_initDigitalOutput (uint32_t pincmIndex) |
| Configures a pin as a basic GPIO output. More... | |
| __STATIC_INLINE void | DL_GPIO_initDigitalOutputFeatures (uint32_t pincmIndex, DL_GPIO_INVERSION inversion, DL_GPIO_RESISTOR internalResistor, DL_GPIO_DRIVE_STRENGTH driveStrength, DL_GPIO_HIZ hiZ) |
| Configures a pin as a GPIO output. More... | |
| __STATIC_INLINE void | DL_GPIO_setDigitalInternalResistor (uint32_t pincmIndex, DL_GPIO_RESISTOR internalResistor) |
| Configures internal resistor for digital pin. More... | |
| __STATIC_INLINE void | DL_GPIO_setAnalogInternalResistor (uint32_t pincmIndex, DL_GPIO_RESISTOR internalResistor) |
| Configures internal resistor for analog pin. More... | |
| __STATIC_INLINE void | DL_GPIO_initDigitalInput (uint32_t pincmIndex) |
| Configures a pin as a basic GPIO input. More... | |
| __STATIC_INLINE void | DL_GPIO_initDigitalInputFeatures (uint32_t pincmIndex, DL_GPIO_INVERSION inversion, DL_GPIO_RESISTOR internalResistor, DL_GPIO_HYSTERESIS hysteresis, DL_GPIO_WAKEUP wakeup) |
| Configures a pin as a GPIO input. More... | |
| __STATIC_INLINE void | DL_GPIO_initPeripheralFunction (uint32_t pincmIndex, uint32_t function) |
| Configure a pin to operate with peripheral functionality. More... | |
| __STATIC_INLINE void | DL_GPIO_initPeripheralOutputFunction (uint32_t pincmIndex, uint32_t function) |
| Configure a pin to operate with peripheral output functionality. More... | |
| __STATIC_INLINE void | DL_GPIO_initPeripheralOutputFunctionFeatures (uint32_t pincmIndex, uint32_t function, DL_GPIO_INVERSION inversion, DL_GPIO_RESISTOR internalResistor, DL_GPIO_DRIVE_STRENGTH driveStrength, DL_GPIO_HIZ hiZ) |
| Configure a pin to operate with peripheral output functionality with optional features. More... | |
| __STATIC_INLINE void | DL_GPIO_initPeripheralInputFunction (uint32_t pincmIndex, uint32_t function) |
| Configure a pin to operate with peripheral input functionality. More... | |
| __STATIC_INLINE void | DL_GPIO_initPeripheralInputFunctionFeatures (uint32_t pincmIndex, uint32_t function, DL_GPIO_INVERSION inversion, DL_GPIO_RESISTOR internalResistor, DL_GPIO_HYSTERESIS hysteresis, DL_GPIO_WAKEUP wakeup) |
| Configure a pin to operate with peripheral input functionality with optional features. More... | |
| __STATIC_INLINE void | DL_GPIO_initPeripheralAnalogFunction (uint32_t pincmIndex) |
| Configure a pin to operate with analog functionality. More... | |
| __STATIC_INLINE void | DL_GPIO_enableWakeUp (uint32_t pincmIndex) |
| Set GPIO pin's wakeup enable bit. More... | |
| __STATIC_INLINE void | DL_GPIO_disableWakeUp (uint32_t pincmIndex) |
| Clear GPIO pin's wakeup enable bit. More... | |
| __STATIC_INLINE bool | DL_GPIO_isWakeUpEnabled (uint32_t pincmIndex) |
| Returns if GPIO pin's wake up bit is enabled. More... | |
| __STATIC_INLINE bool | DL_GPIO_isWakeStateGenerated (uint32_t pincmIndex) |
| Checks if the GPIO pin's Wake State bit is active. More... | |
| __STATIC_INLINE uint32_t | DL_GPIO_readPins (GPIO_Regs *gpio, uint32_t pins) |
| Read a group of GPIO pins. More... | |
| __STATIC_INLINE void | DL_GPIO_writePins (GPIO_Regs *gpio, uint32_t pins) |
| Write a group of GPIO pins. More... | |
| __STATIC_INLINE void | DL_GPIO_writePinsVal (GPIO_Regs *gpio, uint32_t pinsMask, uint32_t pinsVal) |
| Update the value of one or more GPIO pins. More... | |
| __STATIC_INLINE void | DL_GPIO_setPins (GPIO_Regs *gpio, uint32_t pins) |
| Set a group of GPIO pins. More... | |
| __STATIC_INLINE void | DL_GPIO_clearPins (GPIO_Regs *gpio, uint32_t pins) |
| Clear a group of GPIO pins. More... | |
| __STATIC_INLINE void | DL_GPIO_togglePins (GPIO_Regs *gpio, uint32_t pins) |
| Toggle a group of GPIO pins. More... | |
| __STATIC_INLINE void | DL_GPIO_enableOutput (GPIO_Regs *gpio, uint32_t pins) |
| Enable output on a group of GPIO pins. More... | |
| __STATIC_INLINE void | DL_GPIO_disableOutput (GPIO_Regs *gpio, uint32_t pins) |
| Disable output on a group of GPIO pins. More... | |
| __STATIC_INLINE void | DL_GPIO_enableDMAAccess (GPIO_Regs *gpio, uint32_t pins) |
| Enable DMA access on a group of pins. More... | |
| __STATIC_INLINE void | DL_GPIO_disableDMAAccess (GPIO_Regs *gpio, uint32_t pins) |
| Disable DMA access on a group of pins. More... | |
| __STATIC_INLINE uint32_t | DL_GPIO_isDMAccessEnabled (GPIO_Regs *gpio, uint32_t pins) |
| Check if DMA access is enabled on a group of pins. More... | |
| __STATIC_INLINE void | DL_GPIO_setLowerPinsPolarity (GPIO_Regs *gpio, uint32_t polarity) |
| Set the polarity of all bits [0, 15] in the group of pins. More... | |
| __STATIC_INLINE void | DL_GPIO_setUpperPinsPolarity (GPIO_Regs *gpio, uint32_t polarity) |
| Set the polarity of all bits [16, 31] in the group of pins. More... | |
| __STATIC_INLINE uint32_t | DL_GPIO_getLowerPinsPolarity (GPIO_Regs *gpio) |
| Get the polarity of bits [0, 15] in the group of pins. More... | |
| __STATIC_INLINE uint32_t | DL_GPIO_getUpperPinsPolarity (GPIO_Regs *gpio) |
| Get the polarity of bits [16, 31] in the group of pins. More... | |
| __STATIC_INLINE void | DL_GPIO_setLowerPinsInputFilter (GPIO_Regs *gpio, uint32_t filter) |
| Set the input filter of bits [0, 15] in the group of pins. More... | |
| __STATIC_INLINE void | DL_GPIO_setUpperPinsInputFilter (GPIO_Regs *gpio, uint32_t filter) |
| Set the input filter of bits [16, 31] in the group of pins. More... | |
| __STATIC_INLINE uint32_t | DL_GPIO_getLowerPinsInputFilter (GPIO_Regs *gpio) |
| Get the input filter of bits [0, 15] in the group of pins. More... | |
| __STATIC_INLINE uint32_t | DL_GPIO_getUpperPinsInputFilter (GPIO_Regs *gpio) |
| Get the input filter of bits [16, 31] in the group of pins. More... | |
| __STATIC_INLINE void | DL_GPIO_enableGlobalFastWake (GPIO_Regs *gpio) |
| Enable Global Fast Wake. More... | |
| __STATIC_INLINE void | DL_GPIO_disableGlobalFastWake (GPIO_Regs *gpio) |
| Disable Global Fast Wake. More... | |
| __STATIC_INLINE void | DL_GPIO_enableFastWakePins (GPIO_Regs *gpio, uint32_t pins) |
| Enable fast wake for pins. More... | |
| __STATIC_INLINE void | DL_GPIO_disableFastWakePins (GPIO_Regs *gpio, uint32_t pins) |
| Disable fast wake for pins. More... | |
| __STATIC_INLINE void | DL_GPIO_enableHiZ (uint32_t pincmIndex) |
| Enable Hi-Z for the pin. More... | |
| __STATIC_INLINE void | DL_GPIO_disableHiZ (uint32_t pincmIndex) |
| Disable Hi-Z for the pin. More... | |
| __STATIC_INLINE uint32_t | DL_GPIO_getEnabledFastWakePins (GPIO_Regs *gpio, uint32_t pins) |
| Check which pins have fast wake feature enabled. More... | |
| __STATIC_INLINE void | DL_GPIO_enableInterrupt (GPIO_Regs *gpio, uint32_t pins) |
| Enable GPIO interrupts. More... | |
| __STATIC_INLINE void | DL_GPIO_disableInterrupt (GPIO_Regs *gpio, uint32_t pins) |
| Disable GPIO interrupts. More... | |
| __STATIC_INLINE uint32_t | DL_GPIO_getEnabledInterrupts (GPIO_Regs *gpio, uint32_t pins) |
| Check which GPIO interrupts are enabled. More... | |
| __STATIC_INLINE uint32_t | DL_GPIO_getEnabledInterruptStatus (GPIO_Regs *gpio, uint32_t pins) |
| Check interrupt flag of enabled GPIO interrupts. More... | |
| __STATIC_INLINE void | DL_GPIO_setInterrupt (GPIO_Regs *gpio, uint32_t pins) |
| Set interrupt flag of any GPIO. More... | |
| __STATIC_INLINE uint32_t | DL_GPIO_getRawInterruptStatus (GPIO_Regs *gpio, uint32_t pins) |
| Check interrupt flag of any GPIO interrupt. More... | |
| __STATIC_INLINE DL_GPIO_IIDX | DL_GPIO_getPendingInterrupt (GPIO_Regs *gpio) |
| Get highest priority pending GPIO interrupt. More... | |
| __STATIC_INLINE void | DL_GPIO_clearInterruptStatus (GPIO_Regs *gpio, uint32_t pins) |
| Clear pending GPIO interrupts. More... | |
| __STATIC_INLINE void | DL_GPIO_configSubscriber (GPIO_Regs *gpio, DL_GPIO_SUBSCRIBER_INDEX index, DL_GPIO_SUBSCRIBER_OUT_POLICY policy, DL_GPIO_SUBSCRIBERx_PIN pinIndex) |
| Configures GPIO subscriber. This API preserves enable/disbale status of subscriber. More... | |
| __STATIC_INLINE void | DL_GPIO_enableSubscriber (GPIO_Regs *gpio, DL_GPIO_SUBSCRIBER_INDEX index) |
| Enables GPIO subscriber. More... | |
| __STATIC_INLINE void | DL_GPIO_disableSubscriber (GPIO_Regs *gpio, DL_GPIO_SUBSCRIBER_INDEX index) |
| Disables GPIO subscriber. More... | |
| __STATIC_INLINE bool | DL_GPIO_isSubscriberEnabled (GPIO_Regs *gpio, DL_GPIO_SUBSCRIBER_INDEX index) |
| Returns if GPIO subscriber is enabled. More... | |
| __STATIC_INLINE void | DL_GPIO_setPublisherChanID (GPIO_Regs *gpio, DL_GPIO_PUBLISHER_INDEX index, uint8_t chanID) |
| Sets the event publisher channel id. More... | |
| __STATIC_INLINE uint8_t | DL_GPIO_getPublisherChanID (GPIO_Regs *gpio, DL_GPIO_PUBLISHER_INDEX index) |
| Gets the event publisher channel id. More... | |
| __STATIC_INLINE void | DL_GPIO_setSubscriberChanID (GPIO_Regs *gpio, DL_GPIO_SUBSCRIBER_INDEX index, uint8_t chanID) |
| Sets the event subscriber channel id. More... | |
| __STATIC_INLINE uint8_t | DL_GPIO_getSubscriberChanID (GPIO_Regs *gpio, DL_GPIO_SUBSCRIBER_INDEX index) |
| Gets the event subscriber channel id. More... | |
| __STATIC_INLINE void | DL_GPIO_enableEvents (GPIO_Regs *gpio, DL_GPIO_EVENT_ROUTE index, uint32_t pins) |
| Enables GPIO events. More... | |
| __STATIC_INLINE void | DL_GPIO_disableEvents (GPIO_Regs *gpio, DL_GPIO_EVENT_ROUTE index, uint32_t pins) |
| Disable GPIO events. More... | |
| __STATIC_INLINE uint32_t | DL_GPIO_getEnabledEvents (GPIO_Regs *gpio, DL_GPIO_EVENT_ROUTE index, uint32_t pins) |
| Check which GPIO events are enabled. More... | |
| __STATIC_INLINE uint32_t | DL_GPIO_getEnabledEventStatus (GPIO_Regs *gpio, DL_GPIO_EVENT_ROUTE index, uint32_t pins) |
| Checks if any of the GPIO events which were previously enabled are pending. More... | |
| __STATIC_INLINE void | DL_GPIO_clearEventStatus (GPIO_Regs *gpio, DL_GPIO_EVENT_ROUTE index, uint32_t pins) |
| Clear pending GPIO event. More... | |
The GPIO Driver Library allows full configuration of the MSPM0 GPIO module. The GPIO peripheral provides the user with a means to write data out and read data in to and from the device pins. It also provides a way to detect wakeup events while the device is in a low power state.
| enum DL_GPIO_INVERSION |
| enum DL_GPIO_RESISTOR |
| enum DL_GPIO_HYSTERESIS |
| enum DL_GPIO_WAKEUP |
| enum DL_GPIO_HIZ |
| enum DL_GPIO_EVENT_ROUTE |
| enum DL_GPIO_IIDX |
| __STATIC_INLINE void DL_GPIO_enablePower | ( | GPIO_Regs * | gpio | ) |
Enables power on GPIO module.
| gpio | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_GPIO_disablePower | ( | GPIO_Regs * | gpio | ) |
Disables power on gpio module.
| gpio | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE bool DL_GPIO_isPowerEnabled | ( | GPIO_Regs * | gpio | ) |
Returns if power on gpio module.
| gpio | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_GPIO_reset | ( | GPIO_Regs * | gpio | ) |
Resets gpio peripheral.
| gpio | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE bool DL_GPIO_isReset | ( | GPIO_Regs * | gpio | ) |
Returns if gpio peripheral was reset.
| gpio | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_GPIO_initDigitalOutput | ( | uint32_t | pincmIndex | ) |
Configures a pin as a basic GPIO output.
| [in] | pincmIndex | The PINCM register index that maps to the target GPIO pin. |
| __STATIC_INLINE void DL_GPIO_initDigitalOutputFeatures | ( | uint32_t | pincmIndex, |
| DL_GPIO_INVERSION | inversion, | ||
| DL_GPIO_RESISTOR | internalResistor, | ||
| DL_GPIO_DRIVE_STRENGTH | driveStrength, | ||
| DL_GPIO_HIZ | hiZ | ||
| ) |
Configures a pin as a GPIO output.
| [in] | pincmIndex | The PINCM register index that maps to the target GPIO pin. |
| [in] | inversion | Enable Inversion of the pin output. One of DL_GPIO_INVERSION. |
| [in] | internalResistor | Internal resistor to use. One of DL_GPIO_RESISTOR. |
| [in] | driveStrength | Enable High-Drive for the pin. One of DL_GPIO_DRIVE_STRENGTH. |
| [in] | hiZ | Enable/disable Hi-Z for the pin. One of DL_GPIO_HIZ. |
| __STATIC_INLINE void DL_GPIO_setDigitalInternalResistor | ( | uint32_t | pincmIndex, |
| DL_GPIO_RESISTOR | internalResistor | ||
| ) |
Configures internal resistor for digital pin.
| [in] | pincmIndex | The PINCM register index that maps to the target GPIO pin. |
| [in] | internalResistor | Internal resistor to use. One of DL_GPIO_RESISTOR. |
| __STATIC_INLINE void DL_GPIO_setAnalogInternalResistor | ( | uint32_t | pincmIndex, |
| DL_GPIO_RESISTOR | internalResistor | ||
| ) |
Configures internal resistor for analog pin.
| [in] | pincmIndex | The PINCM register index that maps to the target GPIO pin. |
| [in] | internalResistor | Internal resistor to use. One of DL_GPIO_RESISTOR. |
| __STATIC_INLINE void DL_GPIO_initDigitalInput | ( | uint32_t | pincmIndex | ) |
Configures a pin as a basic GPIO input.
Configures the pin as a basic GPIO input. If you want to use additional features of the input mode, refer to DL_GPIO_initDigitalInputFeatures.
| [in] | pincmIndex | The PINCM register index that maps to the target GPIO pin. |
| __STATIC_INLINE void DL_GPIO_initDigitalInputFeatures | ( | uint32_t | pincmIndex, |
| DL_GPIO_INVERSION | inversion, | ||
| DL_GPIO_RESISTOR | internalResistor, | ||
| DL_GPIO_HYSTERESIS | hysteresis, | ||
| DL_GPIO_WAKEUP | wakeup | ||
| ) |
Configures a pin as a GPIO input.
| [in] | pincmIndex | The PINCM register index that maps to the target GPIO pin. |
| [in] | inversion | Enable Inversion of the pin input. One of DL_GPIO_INVERSION. |
| [in] | internalResistor | Internal resistor to use. One of DL_GPIO_RESISTOR. |
| [in] | hysteresis | Enable/disable Hysteresis on the pin. One of DL_GPIO_HYSTERESIS. |
| [in] | wakeup | Configure wakeup behavior for the pin. One of DL_GPIO_WAKEUP. |
| __STATIC_INLINE void DL_GPIO_initPeripheralFunction | ( | uint32_t | pincmIndex, |
| uint32_t | function | ||
| ) |
Configure a pin to operate with peripheral functionality.
| [in] | pincmIndex | The PINCM register index that maps to the target pin to configure the peripheral functionality for |
| [in] | function | Function to configure the pin for. See definition of IOMUX_PINCMx_PF_xxx in the device header file. |
| __STATIC_INLINE void DL_GPIO_initPeripheralOutputFunction | ( | uint32_t | pincmIndex, |
| uint32_t | function | ||
| ) |
Configure a pin to operate with peripheral output functionality.
| [in] | pincmIndex | The PINCM register index that maps to the target pin to configure the peripheral functionality for |
| [in] | function | Function to configure the pin for. See definition of IOMUX_PINCMx_PF_xxx in the device header file. |
| __STATIC_INLINE void DL_GPIO_initPeripheralOutputFunctionFeatures | ( | uint32_t | pincmIndex, |
| uint32_t | function, | ||
| DL_GPIO_INVERSION | inversion, | ||
| DL_GPIO_RESISTOR | internalResistor, | ||
| DL_GPIO_DRIVE_STRENGTH | driveStrength, | ||
| DL_GPIO_HIZ | hiZ | ||
| ) |
Configure a pin to operate with peripheral output functionality with optional features.
| [in] | pincmIndex | The PINCM register index that maps to the target pin to configure the peripheral functionality for |
| [in] | function | Function to configure the pin for. Check definition of IOMUX_PINCMx_PF_xxx in the device header file. |
| [in] | inversion | Enable Inversion of the pin output. One of DL_GPIO_INVERSION. |
| [in] | internalResistor | Internal resistor to use. One of DL_GPIO_RESISTOR. |
| [in] | driveStrength | Enable High-Drive for the pin. One of DL_GPIO_DRIVE_STRENGTH. |
| [in] | hiZ | Enable/disable Hi-Z for the pin. One of DL_GPIO_HIZ. |
| __STATIC_INLINE void DL_GPIO_initPeripheralInputFunction | ( | uint32_t | pincmIndex, |
| uint32_t | function | ||
| ) |
Configure a pin to operate with peripheral input functionality.
| [in] | pincmIndex | The PINCM register index that maps to the target pin to configure the peripheral functionality for |
| [in] | function | Function to configure the pin for. See definition of IOMUX_PINCMx_PF_xxx in the device header file. |
| __STATIC_INLINE void DL_GPIO_initPeripheralInputFunctionFeatures | ( | uint32_t | pincmIndex, |
| uint32_t | function, | ||
| DL_GPIO_INVERSION | inversion, | ||
| DL_GPIO_RESISTOR | internalResistor, | ||
| DL_GPIO_HYSTERESIS | hysteresis, | ||
| DL_GPIO_WAKEUP | wakeup | ||
| ) |
Configure a pin to operate with peripheral input functionality with optional features.
| [in] | pincmIndex | The PINCM register index that maps to the target pin to configure the peripheral functionality for |
| [in] | function | Function to configure the pin for. See definition of IOMUX_PINCMx_PF_xxx in the device header file. |
| [in] | inversion | Enable Inversion of the pin input. One of DL_GPIO_INVERSION. |
| [in] | internalResistor | Internal resistor to use. One of DL_GPIO_RESISTOR. |
| [in] | hysteresis | Enable/disable Hystersis on the pin. One of DL_GPIO_HYSTERESIS. |
| [in] | wakeup | Configure wakeup behavior for the pin. One of DL_GPIO_WAKEUP. |
| __STATIC_INLINE void DL_GPIO_initPeripheralAnalogFunction | ( | uint32_t | pincmIndex | ) |
Configure a pin to operate with analog functionality.
| [in] | pincmIndex | The PINCM register index that maps to the target pin to configure the analog functionality for |
| __STATIC_INLINE void DL_GPIO_enableWakeUp | ( | uint32_t | pincmIndex | ) |
Set GPIO pin's wakeup enable bit.
| [in] | pincmIndex | The PINCM register index that maps to the target GPIO pin. |
References DL_GPIO_WAKEUP_ENABLE.
| __STATIC_INLINE void DL_GPIO_disableWakeUp | ( | uint32_t | pincmIndex | ) |
Clear GPIO pin's wakeup enable bit.
| [in] | pincmIndex | The PINCM register index that maps to the target GPIO pin. |
| __STATIC_INLINE bool DL_GPIO_isWakeUpEnabled | ( | uint32_t | pincmIndex | ) |
Returns if GPIO pin's wake up bit is enabled.
| [in] | pincmIndex | The PINCM register index that maps to the target GPIO pin. |
| __STATIC_INLINE bool DL_GPIO_isWakeStateGenerated | ( | uint32_t | pincmIndex | ) |
Checks if the GPIO pin's Wake State bit is active.
| [in] | pincmIndex | The PINCM register index that maps to the target GPIO pin. |
| __STATIC_INLINE uint32_t DL_GPIO_readPins | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Read a group of GPIO pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Pins to read. Bitwise OR of DL_GPIO_PIN. |
| Bitwise | OR of DL_GPIO_PIN of pins that are currently high from the input selection. |
| __STATIC_INLINE void DL_GPIO_writePins | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Write a group of GPIO pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Pins to write. All enabled GPIO pins will be set to the equivalent bit value in pins. |
| __STATIC_INLINE void DL_GPIO_writePinsVal | ( | GPIO_Regs * | gpio, |
| uint32_t | pinsMask, | ||
| uint32_t | pinsVal | ||
| ) |
Update the value of one or more GPIO pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pinsMask | The GPIO pin(s) you want to update. Bitwise OR of DL_GPIO_PIN. |
| [in] | pinsVal | Value(s) for the GPIO pin(s) you want to update. Only the values for pins specified in pinsMask will change. |
| __STATIC_INLINE void DL_GPIO_setPins | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Set a group of GPIO pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Pins to set high. Bitwise OR of DL_GPIO_PIN. |
| __STATIC_INLINE void DL_GPIO_clearPins | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Clear a group of GPIO pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Pins to clear. Bitwise OR of DL_GPIO_PIN. |
| __STATIC_INLINE void DL_GPIO_togglePins | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Toggle a group of GPIO pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Pins to toggle. Bitwise OR of DL_GPIO_PIN. |
| __STATIC_INLINE void DL_GPIO_enableOutput | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Enable output on a group of GPIO pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Pins to enable output. Bitwise OR of DL_GPIO_PIN. |
| __STATIC_INLINE void DL_GPIO_disableOutput | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Disable output on a group of GPIO pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Pins to disable output. Bitwise OR of DL_GPIO_PIN. |
| __STATIC_INLINE void DL_GPIO_enableDMAAccess | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Enable DMA access on a group of pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Pins to toggle. Bitwise OR of DL_GPIO_PIN. |
References DL_Common_updateReg().
| __STATIC_INLINE void DL_GPIO_disableDMAAccess | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Disable DMA access on a group of pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Pins to disable DMA access on. Bitwise OR of DL_GPIO_PIN. |
References DL_Common_updateReg().
| __STATIC_INLINE uint32_t DL_GPIO_isDMAccessEnabled | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Check if DMA access is enabled on a group of pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Pins to check DMA access on. Bitwise OR of DL_GPIO_PIN. |
| Bitwise | OR of DL_GPIO_PIN values |
| __STATIC_INLINE void DL_GPIO_setLowerPinsPolarity | ( | GPIO_Regs * | gpio, |
| uint32_t | polarity | ||
| ) |
Set the polarity of all bits [0, 15] in the group of pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | polarity | Bitwise OR of DL_GPIO_EDGE_POLARITY for pins [0, 15] |
| __STATIC_INLINE void DL_GPIO_setUpperPinsPolarity | ( | GPIO_Regs * | gpio, |
| uint32_t | polarity | ||
| ) |
Set the polarity of all bits [16, 31] in the group of pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | polarity | Bitwise OR of DL_GPIO_EDGE_POLARITY for pins [16, 31] |
| __STATIC_INLINE uint32_t DL_GPIO_getLowerPinsPolarity | ( | GPIO_Regs * | gpio | ) |
Get the polarity of bits [0, 15] in the group of pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| Polarity | setting with bitwise OR of DL_GPIO_EDGE_POLARITY for pins [0, 15] |
| __STATIC_INLINE uint32_t DL_GPIO_getUpperPinsPolarity | ( | GPIO_Regs * | gpio | ) |
Get the polarity of bits [16, 31] in the group of pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| Polarity | setting with bitwise OR of DL_GPIO_EDGE_POLARITY for pins [16, 31] |
| __STATIC_INLINE void DL_GPIO_setLowerPinsInputFilter | ( | GPIO_Regs * | gpio, |
| uint32_t | filter | ||
| ) |
Set the input filter of bits [0, 15] in the group of pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | filter | Bitwise OR of DL_GPIO_INPUT_FILTER for pins [0, 15] |
| __STATIC_INLINE void DL_GPIO_setUpperPinsInputFilter | ( | GPIO_Regs * | gpio, |
| uint32_t | filter | ||
| ) |
Set the input filter of bits [16, 31] in the group of pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | filter | Bitwise OR of DL_GPIO_INPUT_FILTER for pins [16, 31] |
| __STATIC_INLINE uint32_t DL_GPIO_getLowerPinsInputFilter | ( | GPIO_Regs * | gpio | ) |
Get the input filter of bits [0, 15] in the group of pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| Input | filter setting with bitwise OR of DL_GPIO_INPUT_FILTER for pins [0, 15] |
| __STATIC_INLINE uint32_t DL_GPIO_getUpperPinsInputFilter | ( | GPIO_Regs * | gpio | ) |
Get the input filter of bits [16, 31] in the group of pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| Input | filter setting with bitwise OR of DL_GPIO_INPUT_FILTER for pins [16, 31] |
| __STATIC_INLINE void DL_GPIO_enableGlobalFastWake | ( | GPIO_Regs * | gpio | ) |
Enable Global Fast Wake.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_GPIO_disableGlobalFastWake | ( | GPIO_Regs * | gpio | ) |
Disable Global Fast Wake.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_GPIO_enableFastWakePins | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Enable fast wake for pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Bit mask of pins to enable fast-wake feature. Bitwise OR of DL_GPIO_PIN. |
| __STATIC_INLINE void DL_GPIO_disableFastWakePins | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Disable fast wake for pins.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Bit mask of pins to disable fast-wake feature. Bitwise OR of DL_GPIO_PIN. |
| __STATIC_INLINE void DL_GPIO_enableHiZ | ( | uint32_t | pincmIndex | ) |
Enable Hi-Z for the pin.
| [in] | pincmIndex | The PINCM register index that maps to the target GPIO pin |
| __STATIC_INLINE void DL_GPIO_disableHiZ | ( | uint32_t | pincmIndex | ) |
Disable Hi-Z for the pin.
| [in] | pincmIndex | The PINCM register index that maps to the target GPIO pin |
| __STATIC_INLINE uint32_t DL_GPIO_getEnabledFastWakePins | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Check which pins have fast wake feature enabled.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Bit mask of pins to check. Bitwise OR of DL_GPIO_PIN. |
| Bitwise | OR of DL_GPIO_PIN values |
| __STATIC_INLINE void DL_GPIO_enableInterrupt | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Enable GPIO interrupts.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Bit mask of interrupts to enable. Bitwise OR of DL_GPIO_PIN. |
| __STATIC_INLINE void DL_GPIO_disableInterrupt | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Disable GPIO interrupts.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Bit mask of interrupts to disable. Bitwise OR of DL_GPIO_PIN. |
| __STATIC_INLINE uint32_t DL_GPIO_getEnabledInterrupts | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Check which GPIO interrupts are enabled.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Bit mask of interrupts to check. Bitwise OR of DL_GPIO_PIN. |
| Bitwise | OR of DL_GPIO_PIN values |
| __STATIC_INLINE uint32_t DL_GPIO_getEnabledInterruptStatus | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Check interrupt flag of enabled GPIO interrupts.
Checks if any of the GPIO interrupts that were previously enabled are pending.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Bit mask of interrupts to check. Bitwise OR of DL_GPIO_PIN. |
| Bitwise | OR of DL_GPIO_PIN values |
| __STATIC_INLINE void DL_GPIO_setInterrupt | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Set interrupt flag of any GPIO.
Manually set a GPIO interrupt to be pending
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Bit mask of interrupts to set. Bitwise OR of DL_GPIO_PIN. |
| __STATIC_INLINE uint32_t DL_GPIO_getRawInterruptStatus | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Check interrupt flag of any GPIO interrupt.
Checks if any of the GPIO interrupts are pending. Interrupts do not have to be previously enabled.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Bit mask of interrupts to check. Bitwise OR of DL_GPIO_PIN. |
| Bitwise | OR of DL_GPIO_PIN values |
| __STATIC_INLINE DL_GPIO_IIDX DL_GPIO_getPendingInterrupt | ( | GPIO_Regs * | gpio | ) |
Get highest priority pending GPIO interrupt.
Checks if any of the GPIO interrupts are pending. Interrupts do not have to be previously enabled.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| One | of DL_GPIO_IIDX |
| __STATIC_INLINE void DL_GPIO_clearInterruptStatus | ( | GPIO_Regs * | gpio, |
| uint32_t | pins | ||
| ) |
Clear pending GPIO interrupts.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | pins | Bit mask of interrupts to check. Bitwise OR of DL_GPIO_PIN. |
| __STATIC_INLINE void DL_GPIO_configSubscriber | ( | GPIO_Regs * | gpio, |
| DL_GPIO_SUBSCRIBER_INDEX | index, | ||
| DL_GPIO_SUBSCRIBER_OUT_POLICY | policy, | ||
| DL_GPIO_SUBSCRIBERx_PIN | pinIndex | ||
| ) |
Configures GPIO subscriber. This API preserves enable/disbale status of subscriber.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | index | Specifies the subscriber event index to be configured |
| [in] | policy | Specifies the the GPIO behavior when the subscriber receives publisher event. |
| [in] | pinIndex | Specifies the GPIO bit number which will be targeted by the subscriber action. |
References DL_Common_updateReg().
| __STATIC_INLINE void DL_GPIO_enableSubscriber | ( | GPIO_Regs * | gpio, |
| DL_GPIO_SUBSCRIBER_INDEX | index | ||
| ) |
Enables GPIO subscriber.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | index | Specifies the subscriber event index to be configured |
| __STATIC_INLINE void DL_GPIO_disableSubscriber | ( | GPIO_Regs * | gpio, |
| DL_GPIO_SUBSCRIBER_INDEX | index | ||
| ) |
Disables GPIO subscriber.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | index | Specifies the subscriber event index to be configured |
| __STATIC_INLINE bool DL_GPIO_isSubscriberEnabled | ( | GPIO_Regs * | gpio, |
| DL_GPIO_SUBSCRIBER_INDEX | index | ||
| ) |
Returns if GPIO subscriber is enabled.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | index | Specifies the subscriber event index to be configured |
| __STATIC_INLINE void DL_GPIO_setPublisherChanID | ( | GPIO_Regs * | gpio, |
| DL_GPIO_PUBLISHER_INDEX | index, | ||
| uint8_t | chanID | ||
| ) |
Sets the event publisher channel id.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | index | Specifies the register event index to be configured |
| [in] | chanID | Channel ID number. Valid range 0-15. If ChanID == 0 subscriber is disconnected. Consult your device datasheet on the actual maximum number of channels. |
| __STATIC_INLINE uint8_t DL_GPIO_getPublisherChanID | ( | GPIO_Regs * | gpio, |
| DL_GPIO_PUBLISHER_INDEX | index | ||
| ) |
Gets the event publisher channel id.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | index | Specifies the register event index to be configured |
| __STATIC_INLINE void DL_GPIO_setSubscriberChanID | ( | GPIO_Regs * | gpio, |
| DL_GPIO_SUBSCRIBER_INDEX | index, | ||
| uint8_t | chanID | ||
| ) |
Sets the event subscriber channel id.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | index | Specifies the register event index to be configured |
| [in] | chanID | Channel ID number. Valid range 0-15. If ChanID == 0 subscriber is disconnected. Consult your device datasheet on the actual maximum number of channels. |
| __STATIC_INLINE uint8_t DL_GPIO_getSubscriberChanID | ( | GPIO_Regs * | gpio, |
| DL_GPIO_SUBSCRIBER_INDEX | index | ||
| ) |
Gets the event subscriber channel id.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | index | Specifies the register event index to be configured |
| __STATIC_INLINE void DL_GPIO_enableEvents | ( | GPIO_Regs * | gpio, |
| DL_GPIO_EVENT_ROUTE | index, | ||
| uint32_t | pins | ||
| ) |
Enables GPIO events.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | index | Specifies the register event index to be configured |
| [in] | pins | Valid options will depend on index argument. When index == DL_GPIO_EVENT_ROUTE_1, valid pins values are bitwise OR of DL_GPIO_PIN (0-15). When index == DL_GPIO_EVENT_ROUTE_2, valid pins Bitwise OR of DL_GPIO_PIN (16-31). |
References DL_GPIO_EVENT_ROUTE_1, and DL_GPIO_EVENT_ROUTE_2.
| __STATIC_INLINE void DL_GPIO_disableEvents | ( | GPIO_Regs * | gpio, |
| DL_GPIO_EVENT_ROUTE | index, | ||
| uint32_t | pins | ||
| ) |
Disable GPIO events.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | index | Specifies the register event index to be configured |
| [in] | pins | Valid options will depend on index argument. When index == DL_GPIO_EVENT_ROUTE_1, valid pins values are bitwise OR of DL_GPIO_PIN (0-15). When index == DL_GPIO_EVENT_ROUTE_2, valid pins Bitwise OR of DL_GPIO_PIN (16-31). |
References DL_GPIO_EVENT_ROUTE_1, and DL_GPIO_EVENT_ROUTE_2.
| __STATIC_INLINE uint32_t DL_GPIO_getEnabledEvents | ( | GPIO_Regs * | gpio, |
| DL_GPIO_EVENT_ROUTE | index, | ||
| uint32_t | pins | ||
| ) |
Check which GPIO events are enabled.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | index | Specifies the register event index to be configured |
| [in] | pins | Valid options will depend on index argument. When index == DL_GPIO_EVENT_ROUTE_1, valid pins values are bitwise OR of DL_GPIO_PIN (0-15). When index == DL_GPIO_EVENT_ROUTE_2, valid pins Bitwise OR of DL_GPIO_PIN (16-31). |
| Bitwise | OR of DL_GPIO_PIN values |
| __STATIC_INLINE uint32_t DL_GPIO_getEnabledEventStatus | ( | GPIO_Regs * | gpio, |
| DL_GPIO_EVENT_ROUTE | index, | ||
| uint32_t | pins | ||
| ) |
Checks if any of the GPIO events which were previously enabled are pending.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | index | Specifies the register event index to be configured |
| [in] | pins | Valid options will depend on index argument. When index == DL_GPIO_EVENT_ROUTE_1, valid pins values are bitwise OR of DL_GPIO_PIN (0-15). When index == DL_GPIO_EVENT_ROUTE_2, valid pins Bitwise OR of DL_GPIO_PIN (16-31). |
| Bitwise | OR of DL_GPIO_PIN values |
| __STATIC_INLINE void DL_GPIO_clearEventStatus | ( | GPIO_Regs * | gpio, |
| DL_GPIO_EVENT_ROUTE | index, | ||
| uint32_t | pins | ||
| ) |
Clear pending GPIO event.
| [in] | gpio | Pointer to the register overlay for the peripheral |
| [in] | index | Specifies the register event index to be configured |
| [in] | pins | Valid options will depend on index argument. When index == DL_GPIO_EVENT_ROUTE_1, valid pins values are bitwise OR of DL_GPIO_PIN (0-15). When index == DL_GPIO_EVENT_ROUTE_2, valid pins Bitwise OR of DL_GPIO_PIN (16-31). |
References DL_GPIO_EVENT_ROUTE_1, and DL_GPIO_EVENT_ROUTE_2.