![]() |
MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
|
Modules | |
| Port and Pin Definitions | |
| GPIO_Registers | |
Data Structures | |
| struct | mxc_gpio_cfg_t |
Typedefs | |
| typedef void(* | mxc_gpio_callback_fn) (void *cbdata) |
Enumerations | |
| enum | mxc_gpio_func_t |
| enum | mxc_gpio_vssel_t |
| enum | mxc_gpio_pad_t |
| enum | mxc_gpio_int_mode_t |
| enum | mxc_gpio_int_pol_t |
| struct mxc_gpio_cfg_t |
Structure type for configuring a GPIO port.
Data Fields | |
| mxc_gpio_regs_t * | port |
| uint32_t | mask |
| mxc_gpio_func_t | func |
| mxc_gpio_pad_t | pad |
| mxc_gpio_vssel_t | vssel |
| mxc_gpio_func_t func |
Function type
| uint32_t mask |
Pin mask (multiple pins may be set)
| mxc_gpio_pad_t pad |
Pad type
| mxc_gpio_regs_t* port |
Pointer to GPIO regs
| mxc_gpio_vssel_t vssel |
Voltage select
| typedef void(* mxc_gpio_callback_fn) (void *cbdata) |
Type alias for a GPIO callback function with prototype:
| cbdata | A void pointer to the data type as registered when MXC_GPIO_RegisterCallback() was called. |
| enum mxc_gpio_func_t |
Enumeration type for the GPIO Function Type.
| enum mxc_gpio_int_mode_t |
| enum mxc_gpio_int_pol_t |
Enumeration type for the interrupt polarity.
| enum mxc_gpio_pad_t |
| enum mxc_gpio_vssel_t |
| void MXC_GPIO_ClearFlags | ( | mxc_gpio_regs_t * | port, |
| uint32_t | flags | ||
| ) |
Gets the interrupt(s) status on a GPIO port.
| port | Pointer to the port requested |
| flags | The flags to clear |
| int MXC_GPIO_Config | ( | const mxc_gpio_cfg_t * | cfg | ) |
Configure GPIO pin(s).
| cfg | Pointer to configuration structure describing the pin. |
| void MXC_GPIO_DisableInt | ( | mxc_gpio_regs_t * | port, |
| uint32_t | mask | ||
| ) |
Disables the specified GPIO interrupt.
| port | Pointer to GPIO port. |
| mask | Mask of the pin to disable interrupt |
| void MXC_GPIO_EnableInt | ( | mxc_gpio_regs_t * | port, |
| uint32_t | mask | ||
| ) |
Enables the specified GPIO interrupt.
| port | Pointer to GPIO port. |
| mask | Mask of the pin to enable interrupt |
| uint32_t MXC_GPIO_GetFlags | ( | mxc_gpio_regs_t * | port | ) |
Gets the interrupt(s) status on a GPIO port.
| port | Pointer to the port requested |
| void MXC_GPIO_Handler | ( | unsigned int | port | ) |
GPIO IRQ Handler.
| port | number of the port that generated the interrupt service routine. |
| uint32_t MXC_GPIO_InGet | ( | mxc_gpio_regs_t * | port, |
| uint32_t | mask | ||
| ) |
Gets the pin(s) input state.
| port | Pointer to GPIO port. |
| mask | Mask of the pin to read |
| int MXC_GPIO_Init | ( | uint32_t | portMask | ) |
Initialize GPIO.
| portMask | Mask for the port to be initialized |
| int MXC_GPIO_IntConfig | ( | const mxc_gpio_cfg_t * | cfg, |
| mxc_gpio_int_pol_t | pol | ||
| ) |
Configure GPIO interrupt(s)
| cfg | Pointer to configuration structure describing the pin. |
| pol | Requested interrupt polarity. |
| void MXC_GPIO_OutClr | ( | mxc_gpio_regs_t * | port, |
| uint32_t | mask | ||
| ) |
Clears the pin(s) to a low level output.
| port | Pointer to GPIO port. |
| mask | Mask of the pin to clear |
| uint32_t MXC_GPIO_OutGet | ( | mxc_gpio_regs_t * | port, |
| uint32_t | mask | ||
| ) |
Gets the pin(s) output state.
| port | Pointer to GPIO port. |
| mask | Mask of the pin to read the output state of. |
| void MXC_GPIO_OutPut | ( | mxc_gpio_regs_t * | port, |
| uint32_t | mask, | ||
| uint32_t | val | ||
| ) |
Write the pin(s) to a desired output level.
| port | Pointer to GPIO port. |
| mask | Mask of the pin to set output level of |
| val | Desired output level of the pin(s). This will be masked with the configuration mask. |
| void MXC_GPIO_OutSet | ( | mxc_gpio_regs_t * | port, |
| uint32_t | mask | ||
| ) |
Sets the pin(s) to a high level output.
| port | Pointer to GPIO port. |
| mask | Mask of the pin to set |
| void MXC_GPIO_OutToggle | ( | mxc_gpio_regs_t * | port, |
| uint32_t | mask | ||
| ) |
Toggles the the pin(s) output level.
| port | Pointer to GPIO port. |
| mask | Mask of the pin to toggle the output |
| void MXC_GPIO_RegisterCallback | ( | const mxc_gpio_cfg_t * | cfg, |
| mxc_gpio_callback_fn | callback, | ||
| void * | cbdata | ||
| ) |
Registers a callback for the interrupt on a given port and pin.
| cfg | Pointer to configuration structure describing the pin |
| callback | A pointer to a function of type mxc_gpio_callback_fn. |
| cbdata | The parameter to be passed to the callback function, mxc_gpio_callback_fn, when an interrupt occurs. |
| int MXC_GPIO_Reset | ( | uint32_t | portMask | ) |
Reset GPIO.
| portMask | Mask for the port to reset |
| int MXC_GPIO_SetVSSEL | ( | mxc_gpio_regs_t * | port, |
| mxc_gpio_vssel_t | vssel, | ||
| uint32_t | mask | ||
| ) |
Set Voltage select for pins to VDDIO or VDDIOH.
| port | The GPIO port | |
| [in] | vssel | VDDIO or VDDIOH to set the voltatge to |
| [in] | mask | Pins in the GPIO port that will be set to the voltage. |
| int MXC_GPIO_Shutdown | ( | uint32_t | portMask | ) |
Shutdown GPIO.
| portMask | Mask for the port to shutdown |