STM32 Blue Pill Drivers
Drivers that could be used to interface and interact with STM32F103C8T6 Microcontroller
|
GPIO Module. More...
Modules | |
GPIO Registers | |
GPIO Registers. | |
GPIO Addresses | |
GPIO Addresses. | |
GPIO Pins Constants | |
GPIO Pins Constants. | |
Macros | |
#define | DEFAULT_PIN_INPUT_TYPE (GPIO_Input_Type_Pull_Down) |
The default input type for the GPIO pins. More... | |
#define | DEFAULT_PIN_OUTPUT_TYPE (GPIO_Output_Type_Push_Pull) |
The default output type for the GPIO pins. More... | |
Functions | |
void | GPIO_vSetPinDirection (t_GPIO_Ports tPort, t_GPIO_Pins tPin, t_GPIO_Direction tDirection) |
This function is used to set the direction of a GPIO pin. More... | |
void | GPIO_vSetPinInputType (t_GPIO_Ports tPort, t_GPIO_Pins tPin, t_GPIO_Input_Type tInputType) |
This function is used to set the input type of a GPIO pin. More... | |
void | GPIO_vSetPinOutputType (t_GPIO_Ports tPort, t_GPIO_Pins tPin, t_GPIO_Output_Type tOutputType) |
This function is used to set the output type of a GPIO pin. More... | |
void | GPIO_vSetPinValue (t_GPIO_Ports tPort, t_GPIO_Pins tPin, t_GPIO_Value tValue) |
This function is used to set the value of a GPIO pin. More... | |
t_GPIO_Value | GPIO_tGetPinValue (t_GPIO_Ports tPort, t_GPIO_Pins tPin) |
This function is used to get the value of a GPIO pin. More... | |
GPIO Module.
This module contains all the APIs related to the GPIO module
#define DEFAULT_PIN_INPUT_TYPE (GPIO_Input_Type_Pull_Down) |
#include <MCAL/GPIO/GPIO_config.h>
The default input type for the GPIO pins.
This macro defines the default input type for the GPIO pins
#define DEFAULT_PIN_OUTPUT_TYPE (GPIO_Output_Type_Push_Pull) |
#include <MCAL/GPIO/GPIO_config.h>
The default output type for the GPIO pins.
This macro defines the default output type for the GPIO pins
enum t_GPIO_Ports |
#include <MCAL/GPIO/GPIO_interface.h>
GPIO Ports.
This type is used to select a GPIO port
Enumerator | |
---|---|
GPIO_Ports_A | GPIO Port A. |
GPIO_Ports_B | GPIO Port B. |
GPIO_Ports_C | GPIO Port C. |
GPIO_Ports_D | GPIO Port D. |
GPIO_Ports_E | GPIO Port E. |
GPIO_Ports_F | GPIO Port F. |
GPIO_Ports_G | GPIO Port G. |
enum t_GPIO_Pins |
#include <MCAL/GPIO/GPIO_interface.h>
GPIO Pins.
This type is used to select a GPIO pin
enum t_GPIO_Direction |
#include <MCAL/GPIO/GPIO_interface.h>
GPIO Direction.
This type is used to select a GPIO pin direction
enum t_GPIO_Output_Type |
#include <MCAL/GPIO/GPIO_interface.h>
GPIO Output Type.
This type is used to select a GPIO pin output type
enum t_GPIO_Input_Type |
#include <MCAL/GPIO/GPIO_interface.h>
GPIO Input Type.
This type is used to select a GPIO pin input type
enum t_GPIO_Value |
#include <MCAL/GPIO/GPIO_interface.h>
GPIO Pin Value.
This type is used to select a GPIO pin value
Enumerator | |
---|---|
GPIO_Value_Low | GPIO Pin Value: LOW (0) |
GPIO_Value_High | GPIO Pin Value: HIGH (1) |
void GPIO_vSetPinDirection | ( | t_GPIO_Ports | tPort, |
t_GPIO_Pins | tPin, | ||
t_GPIO_Direction | tDirection | ||
) |
#include <MCAL/GPIO/GPIO_interface.h>
This function is used to set the direction of a GPIO pin.
This function is used to set the direction of a GPIO pin
[in] | tPort | The GPIO port |
[in] | tPin | The GPIO pin |
[in] | tDirection | The GPIO pin direction |
References DEFAULT_PIN_INPUT_TYPE, DEFAULT_PIN_OUTPUT_TYPE, GPIO_Direction_Input, GPIO_vGetPinSpan(), GPIO_vGetPortAddress(), GPIO_vSetPinInputType(), GPIO_vSetPinOutputType(), IS_PIN_IN_LOW_REGISTER, NULL, P2VAR, and PIN_RESET_MASK.
Referenced by vTestApp_TestingGPIO_main().
void GPIO_vSetPinInputType | ( | t_GPIO_Ports | tPort, |
t_GPIO_Pins | tPin, | ||
t_GPIO_Input_Type | tInputType | ||
) |
#include <MCAL/GPIO/GPIO_interface.h>
This function is used to set the input type of a GPIO pin.
This function is used to set the input type of a GPIO pin
[in] | tPort | The GPIO port |
[in] | tPin | The GPIO pin |
[in] | tInputType | The GPIO pin input type |
References GPIO_Input_Type_Pull_Down, GPIO_Input_Type_Pull_Up, GPIO_vGetPinSpan(), GPIO_vGetPortAddress(), GPIO_vSetPinInputTypePullUpDown(), IS_PIN_IN_LOW_REGISTER, NULL, P2VAR, PIN_CONFIGURATION_BITS_SHIFT_VALUE, and PIN_RESET_CONFIGURATIONS_MASK.
Referenced by GPIO_vSetPinDirection(), and vTestApp_TestingGPIO_main().
void GPIO_vSetPinOutputType | ( | t_GPIO_Ports | tPort, |
t_GPIO_Pins | tPin, | ||
t_GPIO_Output_Type | tOutputType | ||
) |
#include <MCAL/GPIO/GPIO_interface.h>
This function is used to set the output type of a GPIO pin.
This function is used to set the output type of a GPIO pin
[in] | tPort | The GPIO port |
[in] | tPin | The GPIO pin |
[in] | tOutputType | The GPIO pin output type |
References GPIO_vGetPinSpan(), GPIO_vGetPortAddress(), IS_PIN_IN_LOW_REGISTER, NULL, P2VAR, PIN_CONFIGURATION_BITS_SHIFT_VALUE, and PIN_RESET_CONFIGURATIONS_MASK.
Referenced by GPIO_vSetPinDirection().
void GPIO_vSetPinValue | ( | t_GPIO_Ports | tPort, |
t_GPIO_Pins | tPin, | ||
t_GPIO_Value | tValue | ||
) |
#include <MCAL/GPIO/GPIO_interface.h>
This function is used to set the value of a GPIO pin.
This function is used to set the value of a GPIO pin
[in] | tPort | The GPIO port |
[in] | tPin | The GPIO pin |
[in] | tValue | The GPIO pin value |
References GPIO_Value_Low, GPIO_vGetPortAddress(), NULL, P2VAR, PIN_RESET_SHIFT_VALUE, and TRUE.
Referenced by vTestApp_TestingGPIO_main().
t_GPIO_Value GPIO_tGetPinValue | ( | t_GPIO_Ports | tPort, |
t_GPIO_Pins | tPin | ||
) |
#include <MCAL/GPIO/GPIO_interface.h>
This function is used to get the value of a GPIO pin.
This function is used to get the value of a GPIO pin
[in] | tPort | The GPIO port |
[in] | tPin | The GPIO pin |
References GPIO_vGetPortAddress(), NULL, P2VAR, and TRUE.
Referenced by vTestApp_TestingGPIO_main().