Data Structures |
struct | GPIO_InitTypeDef |
| GPIO Init structure definition. More...
|
Modules |
| GPIO_Exported_Types |
| GPIO_Exported_Functions |
| GPIO_Exported_Constants |
| Configuration_Mode_enumeration |
| Output_type_enumeration |
| Output_Maximum_frequency_enumeration |
| Configuration_Pull-Up_Pull-Down_enumeration |
| Bit_SET_and_Bit_RESET_enumeration |
| GPIO_Private_TypesDefinitions |
| GPIO_Private_Defines |
| GPIO_Private_Macros |
| GPIO_Private_Variables |
| GPIO_Private_FunctionPrototypes |
| GPIO_Private_Functions |
Defines |
#define | IS_GPIO_ALL_PERIPH(PERIPH) |
#define | IS_GPIO_MODE(MODE) |
#define | IS_GPIO_OTYPE(OTYPE) (((OTYPE) == GPIO_OType_PP) || ((OTYPE) == GPIO_OType_OD)) |
#define | IS_GPIO_SPEED(SPEED) |
#define | IS_GPIO_PUPD(PUPD) |
#define | IS_GPIO_BIT_ACTION(ACTION) (((ACTION) == Bit_RESET) || ((ACTION) == Bit_SET)) |
#define | IS_GPIO_ALL_PERIPH(PERIPH) |
#define | IS_GPIO_MODE(MODE) |
#define | IS_GPIO_OTYPE(OTYPE) (((OTYPE) == GPIO_OType_PP) || ((OTYPE) == GPIO_OType_OD)) |
#define | IS_GPIO_SPEED(SPEED) |
#define | IS_GPIO_PUPD(PUPD) |
#define | IS_GPIO_BIT_ACTION(ACTION) (((ACTION) == Bit_RESET) || ((ACTION) == Bit_SET)) |
#define | IS_GPIO_ALL_PERIPH(PERIPH) |
Enumerations |
enum | GPIOMode_TypeDef {
GPIO_Mode_AIN = 0x0,
GPIO_Mode_IN_FLOATING = 0x04,
GPIO_Mode_IPD = 0x28,
GPIO_Mode_IPU = 0x48,
GPIO_Mode_Out_OD = 0x14,
GPIO_Mode_Out_PP = 0x10,
GPIO_Mode_AF_OD = 0x1C,
GPIO_Mode_AF_PP = 0x18,
GPIO_Mode_IN = 0x00,
GPIO_Mode_OUT = 0x01,
GPIO_Mode_AF = 0x02,
GPIO_Mode_AN = 0x03,
GPIO_Mode_IN = 0x00,
GPIO_Mode_OUT = 0x01,
GPIO_Mode_AF = 0x02,
GPIO_Mode_AN = 0x03,
GPIO_Mode_IN = 0x00,
GPIO_Mode_OUT = 0x01,
GPIO_Mode_AF = 0x02,
GPIO_Mode_AN = 0x03
} |
| GPIO Configuration Mode enumeration. More...
|
enum | GPIOOType_TypeDef {
GPIO_OType_PP = 0x00,
GPIO_OType_OD = 0x01,
GPIO_OType_PP = 0x00,
GPIO_OType_OD = 0x01,
GPIO_OType_PP = 0x00,
GPIO_OType_OD = 0x01
} |
| GPIO Output type enumeration. More...
|
enum | GPIOSpeed_TypeDef {
GPIO_Speed_10MHz = 1,
GPIO_Speed_2MHz,
GPIO_Speed_50MHz,
GPIO_Speed_2MHz = 0x00,
GPIO_Speed_25MHz = 0x01,
GPIO_Speed_50MHz = 0x02,
GPIO_Speed_100MHz = 0x03,
GPIO_Speed_2MHz = 0x00,
GPIO_Speed_25MHz = 0x01,
GPIO_Speed_50MHz = 0x02,
GPIO_Speed_100MHz = 0x03,
GPIO_Speed_400KHz = 0x00,
GPIO_Speed_2MHz = 0x01,
GPIO_Speed_10MHz = 0x02,
GPIO_Speed_40MHz = 0x03
} |
| GPIO Output Maximum frequency enumeration. More...
|
enum | GPIOPuPd_TypeDef {
GPIO_PuPd_NOPULL = 0x00,
GPIO_PuPd_UP = 0x01,
GPIO_PuPd_DOWN = 0x02,
GPIO_PuPd_NOPULL = 0x00,
GPIO_PuPd_UP = 0x01,
GPIO_PuPd_DOWN = 0x02,
GPIO_PuPd_NOPULL = 0x00,
GPIO_PuPd_UP = 0x01,
GPIO_PuPd_DOWN = 0x02
} |
| GPIO Configuration PullUp PullDown enumeration. More...
|
enum | BitAction {
Bit_RESET = 0,
Bit_SET,
Bit_RESET = 0,
Bit_SET,
Bit_RESET = 0,
Bit_SET
} |
| GPIO Bit SET and Bit RESET enumeration. More...
|
enum | GPIOMode_TypeDef {
GPIO_Mode_AIN = 0x0,
GPIO_Mode_IN_FLOATING = 0x04,
GPIO_Mode_IPD = 0x28,
GPIO_Mode_IPU = 0x48,
GPIO_Mode_Out_OD = 0x14,
GPIO_Mode_Out_PP = 0x10,
GPIO_Mode_AF_OD = 0x1C,
GPIO_Mode_AF_PP = 0x18,
GPIO_Mode_IN = 0x00,
GPIO_Mode_OUT = 0x01,
GPIO_Mode_AF = 0x02,
GPIO_Mode_AN = 0x03,
GPIO_Mode_IN = 0x00,
GPIO_Mode_OUT = 0x01,
GPIO_Mode_AF = 0x02,
GPIO_Mode_AN = 0x03,
GPIO_Mode_IN = 0x00,
GPIO_Mode_OUT = 0x01,
GPIO_Mode_AF = 0x02,
GPIO_Mode_AN = 0x03
} |
| GPIO Configuration Mode enumeration. More...
|
enum | GPIOOType_TypeDef {
GPIO_OType_PP = 0x00,
GPIO_OType_OD = 0x01,
GPIO_OType_PP = 0x00,
GPIO_OType_OD = 0x01,
GPIO_OType_PP = 0x00,
GPIO_OType_OD = 0x01
} |
| GPIO Output type enumeration. More...
|
enum | GPIOSpeed_TypeDef {
GPIO_Speed_10MHz = 1,
GPIO_Speed_2MHz,
GPIO_Speed_50MHz,
GPIO_Speed_2MHz = 0x00,
GPIO_Speed_25MHz = 0x01,
GPIO_Speed_50MHz = 0x02,
GPIO_Speed_100MHz = 0x03,
GPIO_Speed_2MHz = 0x00,
GPIO_Speed_25MHz = 0x01,
GPIO_Speed_50MHz = 0x02,
GPIO_Speed_100MHz = 0x03,
GPIO_Speed_400KHz = 0x00,
GPIO_Speed_2MHz = 0x01,
GPIO_Speed_10MHz = 0x02,
GPIO_Speed_40MHz = 0x03
} |
| GPIO Output Maximum frequency enumeration. More...
|
enum | GPIOPuPd_TypeDef {
GPIO_PuPd_NOPULL = 0x00,
GPIO_PuPd_UP = 0x01,
GPIO_PuPd_DOWN = 0x02,
GPIO_PuPd_NOPULL = 0x00,
GPIO_PuPd_UP = 0x01,
GPIO_PuPd_DOWN = 0x02,
GPIO_PuPd_NOPULL = 0x00,
GPIO_PuPd_UP = 0x01,
GPIO_PuPd_DOWN = 0x02
} |
| GPIO Configuration PullUp PullDown enumeration. More...
|
enum | BitAction {
Bit_RESET = 0,
Bit_SET,
Bit_RESET = 0,
Bit_SET,
Bit_RESET = 0,
Bit_SET
} |
| GPIO Bit SET and Bit RESET enumeration. More...
|
Functions |
void | GPIO_DeInit (GPIO_TypeDef *GPIOx) |
void | GPIO_Init (GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_InitStruct) |
void | GPIO_StructInit (GPIO_InitTypeDef *GPIO_InitStruct) |
void | GPIO_PinLockConfig (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
uint8_t | GPIO_ReadInputDataBit (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
uint16_t | GPIO_ReadInputData (GPIO_TypeDef *GPIOx) |
uint8_t | GPIO_ReadOutputDataBit (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
uint16_t | GPIO_ReadOutputData (GPIO_TypeDef *GPIOx) |
void | GPIO_SetBits (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
void | GPIO_ResetBits (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
void | GPIO_WriteBit (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, BitAction BitVal) |
void | GPIO_Write (GPIO_TypeDef *GPIOx, uint16_t PortVal) |
void | GPIO_ToggleBits (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
void | GPIO_PinAFConfig (GPIO_TypeDef *GPIOx, uint16_t GPIO_PinSource, uint8_t GPIO_AF) |
| Changes the mapping of the specified pin.
|