HARMcksL: ARM HAL toolbox (yet STM32 oriented) 1.6
SMFSW collection of HAL hacks for STM32
Loading...
Searching...
No Matches
GPIO_ex.h File Reference

Extensions for GPIOs (R/W) More...

#include "sarmfsw.h"
#include "GPIO_in.h"
#include "GPIO_out.h"
Include dependency graph for GPIO_ex.h:
This graph shows which files directly or indirectly include this file:

Functions

void write_GPIO (GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const eGPIOState action)
 Write GPIO.
 
GPIO_PinState read_GPIO (GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin)
 Read GPIO.
 
FctERR str_GPIO_name (char *name, const GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin)
 Get name from Port, Pin.
 

Detailed Description

Extensions for GPIOs (R/W)

Author
SMFSW

Function Documentation

◆ read_GPIO()

GPIO_PinState read_GPIO ( GPIO_TypeDef *const GPIOx,
const uint16_t GPIO_Pin )

Read GPIO.

Parameters
[in]GPIOx- port to read from
[in]GPIO_Pin- pin to read from
Returns
Pin state
Here is the call graph for this function:

◆ str_GPIO_name()

FctERR str_GPIO_name ( char * name,
const GPIO_TypeDef *const GPIOx,
const uint16_t GPIO_Pin )

Get name from Port, Pin.

Parameters
[in,out]name- pointer to string for name
[in]GPIOx- port
[in]GPIO_Pin- pin
Returns
Error code
Here is the caller graph for this function:

◆ write_GPIO()

void write_GPIO ( GPIO_TypeDef *const GPIOx,
const uint16_t GPIO_Pin,
const eGPIOState action )

Write GPIO.

Parameters
[in]GPIOx- port to write to
[in]GPIO_Pin- pin to write to
[in]action- action to perform on output port pin
Here is the call graph for this function: