STM32 Blue Pill Drivers
Drivers that could be used to interface and interact with STM32F103C8T6 Microcontroller
Loading...
Searching...
No Matches
GPIO Pins Constants

GPIO Pins Constants. More...

+ Collaboration diagram for GPIO Pins Constants:

Macros

#define PIN_SHIFT_VALUE   (4)
 Pin Shift Value. More...
 
#define PIN_RESET_MASK_VALUE   ((t_u32)0x0000000FU)
 Pin Reset Mask Value. More...
 
#define PIN_RESET_CONFIGURATION_MASK_VALUE   ((t_u32)0x0000000CU)
 Pin Reset Configuration Mask Value. More...
 
#define PIN_RESET_ODR_MASK_VALUE   ((t_u32)0x00000001U)
 Pin Reset ODR Mask Value. More...
 
#define PIN_CONFIGURATION_BITS_SHIFT_VALUE   (2)
 Pin Mode Bits Shift Value. More...
 
#define PIN_RESET_SHIFT_VALUE   (16)
 Pin Reset Shift Value. More...
 
#define PIN_RESET_MASK(GPIO_PIN_SPAN)   ~(PIN_RESET_MASK_VALUE << GPIO_PIN_SPAN)
 Pin Reset Mask. More...
 
#define PIN_RESET_CONFIGURATIONS_MASK(GPIO_PIN_SPAN)   ~(PIN_RESET_CONFIGURATION_MASK_VALUE << GPIO_PIN_SPAN)
 Pin Reset Configurations Mask. More...
 
#define PIN_RESET_ODR_MASK(GPIO_PIN_SPAN)   ~(PIN_RESET_ODR_MASK_VALUE << GPIO_PIN_SPAN)
 Pin Reset ODR Mask. More...
 

Detailed Description

GPIO Pins Constants.

This module contains a set of constants used in configuring the GPIO pins in the configuration register (CRL or CRH)

Macro Definition Documentation

◆ PIN_SHIFT_VALUE

#define PIN_SHIFT_VALUE   (4)

#include <MCAL/GPIO/GPIO_private.h>

Pin Shift Value.

This value is used to shift to the start of a specific pin in the configuration register (CRL or CRH)

◆ PIN_RESET_MASK_VALUE

#define PIN_RESET_MASK_VALUE   ((t_u32)0x0000000FU)

#include <MCAL/GPIO/GPIO_private.h>

Pin Reset Mask Value.

This value is used to reset the mode and configuration bits of a certain pin

◆ PIN_RESET_CONFIGURATION_MASK_VALUE

#define PIN_RESET_CONFIGURATION_MASK_VALUE   ((t_u32)0x0000000CU)

#include <MCAL/GPIO/GPIO_private.h>

Pin Reset Configuration Mask Value.

This value is used to reset the configuration bits of a certain pin

◆ PIN_RESET_ODR_MASK_VALUE

#define PIN_RESET_ODR_MASK_VALUE   ((t_u32)0x00000001U)

#include <MCAL/GPIO/GPIO_private.h>

Pin Reset ODR Mask Value.

This value is used to reset the ODR bit of a certain pin (in the BSRR register)

◆ PIN_CONFIGURATION_BITS_SHIFT_VALUE

#define PIN_CONFIGURATION_BITS_SHIFT_VALUE   (2)

#include <MCAL/GPIO/GPIO_private.h>

Pin Mode Bits Shift Value.

This value is used to shift to the configuration bits of a certain pin

◆ PIN_RESET_SHIFT_VALUE

#define PIN_RESET_SHIFT_VALUE   (16)

#include <MCAL/GPIO/GPIO_private.h>

Pin Reset Shift Value.

This value is used to shift to the start of the position of the first pin bit in the BSRR register

◆ PIN_RESET_MASK

#define PIN_RESET_MASK (   GPIO_PIN_SPAN)    ~(PIN_RESET_MASK_VALUE << GPIO_PIN_SPAN)

#include <MCAL/GPIO/GPIO_private.h>

Pin Reset Mask.

This mask is used to reset the mode and configuration bits of a certain pin

Parameters
[in]GPIO_PIN_SPANThe span of the pin in the configuration register (CRL or CRH)

◆ PIN_RESET_CONFIGURATIONS_MASK

#define PIN_RESET_CONFIGURATIONS_MASK (   GPIO_PIN_SPAN)    ~(PIN_RESET_CONFIGURATION_MASK_VALUE << GPIO_PIN_SPAN)

#include <MCAL/GPIO/GPIO_private.h>

Pin Reset Configurations Mask.

This mask is used to reset the configuration bits of a certain pin

Parameters
[in]GPIO_PIN_SPANThe span of the pin in the configuration register (CRL or CRH)

◆ PIN_RESET_ODR_MASK

#define PIN_RESET_ODR_MASK (   GPIO_PIN_SPAN)    ~(PIN_RESET_ODR_MASK_VALUE << GPIO_PIN_SPAN)

#include <MCAL/GPIO/GPIO_private.h>

Pin Reset ODR Mask.

This mask is used to reset the ODR bit of a certain pin (in the BSRR register)

Parameters
[in]GPIO_PIN_SPANThe span of the pin in the configuration register (CRL or CRH)