S32 SDK
gpio_hal.h File Reference
#include <stdint.h>
#include "device_registers.h"

Go to the source code of this file.

Functions

GPIO

General GPIO functions.

static void GPIO_HAL_WritePin (GPIO_Type *const baseAddr, const uint32_t pinNumber, const uint32_t pinValue)
 Write a pin of a port with a given value. More...
 
static void GPIO_HAL_WritePins (GPIO_Type *const baseAddr, const uint32_t pins)
 Write all pins of a port. More...
 
static uint32_t GPIO_HAL_GetPinsOutput (const GPIO_Type *const baseAddr)
 Get the current output from a port. More...
 
static void GPIO_HAL_SetPins (GPIO_Type *const baseAddr, const uint32_t pins)
 Write pins with 'Set' value. More...
 
static void GPIO_HAL_ClearPins (GPIO_Type *const baseAddr, const uint32_t pins)
 Write pins to 'Clear' value. More...
 
static void GPIO_HAL_TogglePins (GPIO_Type *const baseAddr, const uint32_t pins)
 Toggle pins value. More...
 
static uint32_t GPIO_HAL_ReadPins (const GPIO_Type *const baseAddr)
 Read input pins. More...
 
static uint32_t GPIO_HAL_GetPinsDirection (const GPIO_Type *const baseAddr)
 Get the pins directions configuration for a port. More...
 
static void GPIO_HAL_SetPinDirection (GPIO_Type *const baseAddr, const uint32_t pinNumber, const uint32_t pinDirection)
 Configure the direction for a certain pin from a port. More...
 
static void GPIO_HAL_SetPinsDirection (GPIO_Type *const baseAddr, const uint32_t pins)
 Set the pins directions configuration for a port. More...
 
static void GPIO_HAL_SetPortInputDisable (GPIO_Type *const baseAddr, const uint32_t pins)
 Set the pins input disable state for a port. More...
 
static uint32_t GPIO_HAL_GetPortInputDisable (const GPIO_Type *const baseAddr)
 Get the pins input disable state for a port. More...