pins_driver.c File Reference
#include "device_registers.h"
#include "pins_gpio_hw_access.h"
#include "pins_port_hw_access.h"

Go to the source code of this file.

Functions

status_t PINS_DRV_Init (uint32_t pinCount, const pin_settings_config_t config[])
 Initializes the pins with the given configuration structure. More...
 
void PINS_DRV_SetPullSel (PORT_Type *const base, uint32_t pin, port_pull_config_t pullConfig)
 Configures the internal resistor. More...
 
void PINS_DRV_SetMuxModeSel (PORT_Type *const base, uint32_t pin, port_mux_t mux)
 Configures the pin muxing. More...
 
void PINS_DRV_SetPinIntSel (PORT_Type *const base, uint32_t pin, port_interrupt_config_t intConfig)
 Configures the port pin interrupt/DMA request. More...
 
port_interrupt_config_t PINS_DRV_GetPinIntSel (const PORT_Type *const base, uint32_t pin)
 Gets the current port pin interrupt/DMA request configuration. More...
 
void PINS_DRV_ClearPinIntFlagCmd (PORT_Type *const base, uint32_t pin)
 Clears the individual pin-interrupt status flag. More...
 
void PINS_DRV_EnableDigitalFilter (PORT_Type *const base, uint32_t pin)
 Enables digital filter for digital pin muxing. More...
 
void PINS_DRV_DisableDigitalFilter (PORT_Type *const base, uint32_t pin)
 Disables digital filter for digital pin muxing. More...
 
void PINS_DRV_ConfigDigitalFilter (PORT_Type *const base, const port_digital_filter_config_t *const config)
 Configures digital filter for port with given configuration. More...
 
uint32_t PINS_DRV_GetPortIntFlag (const PORT_Type *const base)
 Reads the entire port interrupt status flag. More...
 
void PINS_DRV_ClearPortIntFlagCmd (PORT_Type *const base)
 Clears the entire port interrupt status flag. More...
 
pins_channel_type_t PINS_DRV_GetPinsDirection (const GPIO_Type *const base)
 Get the pins directions configuration for a port. More...
 
void PINS_DRV_SetPinDirection (GPIO_Type *const base, pins_channel_type_t pin, pins_level_type_t direction)
 Configure the direction for a certain pin from a port. More...
 
void PINS_DRV_SetPinsDirection (GPIO_Type *const base, pins_channel_type_t pins)
 Set the pins directions configuration for a port. More...
 
void PINS_DRV_SetGlobalPinControl (PORT_Type *const base, uint16_t pins, uint16_t value, port_global_control_pins_t halfPort)
 Quickly configures multiple pins with the same pin configuration. More...
 
void PINS_DRV_SetGlobalIntControl (PORT_Type *const base, uint16_t pins, uint16_t value, port_global_control_pins_t halfPort)
 Quickly configures multiple pins with the same interrupt configuration. More...
 
void PINS_DRV_WritePin (GPIO_Type *const base, pins_channel_type_t pin, pins_level_type_t value)
 Write a pin of a port with a given value. More...
 
void PINS_DRV_WritePins (GPIO_Type *const base, pins_channel_type_t pins)
 Write all pins of a port. More...
 
pins_channel_type_t PINS_DRV_GetPinsOutput (const GPIO_Type *const base)
 Get the current output from a port. More...
 
void PINS_DRV_SetPins (GPIO_Type *const base, pins_channel_type_t pins)
 Write pins with 'Set' value. More...
 
void PINS_DRV_ClearPins (GPIO_Type *const base, pins_channel_type_t pins)
 Write pins to 'Clear' value. More...
 
void PINS_DRV_TogglePins (GPIO_Type *const base, pins_channel_type_t pins)
 Toggle pins value. More...
 
pins_channel_type_t PINS_DRV_ReadPins (const GPIO_Type *const base)
 Read input pins. More...