Public functions of the GPIO PRAL driver. More...
Functions | |
volatile struct P33C_GPIO_INSTANCE_s * | p33c_GpioInstance_GetHandle (volatile uint16_t gpioInstance) |
Gets pointer to GPIO Instance SFR set. More... | |
volatile uint16_t | p33c_GpioInstance_Dispose (volatile uint16_t gpioInstance) |
Resets all GPIO Instance registers to their RESET default values. More... | |
volatile struct P33C_GPIO_INSTANCE_s | p33c_GpioInstance_ConfigRead (volatile uint16_t gpioInstance) |
Read the current configuration from the GPIO instance registers More... | |
volatile uint16_t | p33c_GpioInstance_ConfigWrite (volatile uint16_t gpioInstance, volatile struct P33C_GPIO_INSTANCE_s gpioConfig) |
Writes a user-defined configuration to the GPIO instance registers. More... | |
Public functions of the GPIO PRAL driver.
This is the detailed description of public functions of the GPIO PRAL driver
struct P33C_GPIO_INSTANCE_s p33c_GpioInstance_ConfigRead | ( | volatile uint16_t | gpioInstance | ) |
Read the current configuration from the GPIO instance registers
gpioInstance | Index of the selected GPIO Instance (1=Port A, 2=Port B, etc.) |
This function reads all registers with their current configuration into a data structure of type P33C_GPIO_INSTANCE_s. Users can read and verify or modify the configuration to write it back to the GPIO instance
registers or copy configurations to other instances of the same type.
Definition at line 77 of file p33c_gpio.c.
uint16_t p33c_GpioInstance_ConfigWrite | ( | volatile uint16_t | gpioInstance, |
volatile struct P33C_GPIO_INSTANCE_s | gpioConfig | ||
) |
Writes a user-defined configuration to the GPIO instance registers.
gpioInstance | Index of the selected GPIO Instance (1=Port A, 2=Port B, etc.) |
gpioConfig | GPIO peripheral instance SFR object of type struct P33C_GPIO_INSTANCE_s |
This function writes a user-defined GPIO instance configuration of type P33C_GPIO_INSTANCE_s to the GPIO instance registers. The individual register configurations have to be set in user-code before calling this function. To simplify the configuration process of standard functions, this driver provides templates, which can be loaded and written directly.
Definition at line 133 of file p33c_gpio.c.
uint16_t p33c_GpioInstance_Dispose | ( | volatile uint16_t | gpioInstance | ) |
Resets all GPIO Instance registers to their RESET default values.
gpioInstance | Index of the selected GPIO Instance (1=Port A, 2=Port B, etc.) |
This function clears all GPIO Instance registers to their default values set when the device comes out of RESET.
Default configuration:
Definition at line 77 of file p33c_gpio.c.
struct P33C_GPIO_INSTANCE_s * p33c_GpioInstance_GetHandle | ( | volatile uint16_t | gpioInstance | ) |
Gets pointer to GPIO Instance SFR set.
gpioInstance | Index of the selected GPIO Instance (1=Port A, 2=Port B, etc.) |
This function returns the pointer to a GPIO instance register set in Special Function Register memory space. This pointer can be used to directly write to/read from the Special Function Registers of a given peripheral instance.
Definition at line 45 of file p33c_gpio.c.