| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Classes | Macros | Enumerations | Functions
BlueNRG1_gpio.h File Reference

This file contains all the functions prototypes for the GPIO firmware library. More...

`#include "BlueNRG1.h"`

Go to the source code of this file.

## Classes

struct | GPIO_InitType
| Structure definition of GPIO initialization. More...
struct | GPIO_EXTIConfigType
| Structure definition of GPIO EXTernal Interrupt initialization. More...

## Macros

#define | IS_GPIO_BIT_ACTION(ACTION) (((ACTION) == Bit_RESET) || ((ACTION) == Bit_SET))
#define | GPIO_Input ((uint8_t)0)
#define | Serial1_Mode ((uint8_t)1)
#define | Serial0_Mode ((uint8_t)4)
#define | Microphone_Mode ((uint8_t)5)
#define | GPIO_Output ((uint8_t)6)
#define | IS_GPIO_MODE(MODE)
#define | GPIO_Pin_0 ((uint16_t)0x0001)
#define | GPIO_Pin_1 ((uint16_t)0x0002)
#define | GPIO_Pin_2 ((uint16_t)0x0004)
#define | GPIO_Pin_3 ((uint16_t)0x0008)
#define | GPIO_Pin_4 ((uint16_t)0x0010)
#define | GPIO_Pin_5 ((uint16_t)0x0020)
#define | GPIO_Pin_6 ((uint16_t)0x0040)
#define | GPIO_Pin_7 ((uint16_t)0x0080)
#define | GPIO_Pin_8 ((uint16_t)0x0100)
#define | GPIO_Pin_9 ((uint16_t)0x0200)
#define | GPIO_Pin_10 ((uint16_t)0x0400)
#define | GPIO_Pin_11 ((uint16_t)0x0800)
#define | GPIO_Pin_12 ((uint16_t)0x1000)
#define | GPIO_Pin_13 ((uint16_t)0x2000)
#define | GPIO_Pin_14 ((uint16_t)0x4000)
#define | GPIO_Pin_All ((uint16_t)0x7FFF)
#define | GPIO_PIN_COUNT (15)
#define | IS_GPIO_PIN(PIN)
#define | IS_GPIO_PINS(PIN) ((PIN & GPIO_Pin_All) != 0)
#define | GPIO_IrqSense_Edge (0)
#define | GPIO_IrqSense_Level (1)
#define | IS_GPIO_IRQSENSE(IS) (((IS) == GPIO_IrqSense_Edge) || ((IS) == GPIO_IrqSense_Level))
#define | GPIO_Event_Low (0)
#define | GPIO_Event_High (1)
#define | GPIO_Event_Both (2)
#define | IS_GPIO_EVENT(EV)
#define | GPIO_InitInputPinx(PIN_NAME) GPIO_Init(&(GPIO_InitType){PIN_NAME, GPIO_Input, DISABLE, DISABLE});
#define | GPIO_InitOutputPinx(PIN_NAME) GPIO_Init(&(GPIO_InitType){PIN_NAME, GPIO_Output, DISABLE, DISABLE});
#define | GPIO_InitUartRxPin4() GPIO_Init(&(GPIO_InitType){GPIO_Pin_4, Serial1_Mode, DISABLE, DISABLE});
#define | GPIO_InitUartRxPin11() GPIO_Init(&(GPIO_InitType){GPIO_Pin_11, Serial1_Mode, DISABLE, DISABLE});
#define | GPIO_InitUartTxPin5() GPIO_Init(&(GPIO_InitType){GPIO_Pin_5, Serial1_Mode, DISABLE, DISABLE});
#define | GPIO_InitUartTxPin8() GPIO_Init(&(GPIO_InitType){GPIO_Pin_8, Serial1_Mode, DISABLE, DISABLE});
#define | GPIO_InitUartCtsPin0() GPIO_Init(&(GPIO_InitType){GPIO_Pin_0, Serial1_Mode, DISABLE, DISABLE});
#define | GPIO_InitUartCtsPin7() GPIO_Init(&(GPIO_InitType){GPIO_Pin_7, Serial1_Mode, DISABLE, DISABLE});
#define | GPIO_InitUartCtsPin13() GPIO_Init(&(GPIO_InitType){GPIO_Pin_13, Serial1_Mode, DISABLE, DISABLE});
#define | GPIO_InitUartRtsPin1() GPIO_Init(&(GPIO_InitType){GPIO_Pin_1, Serial1_Mode, DISABLE, DISABLE});
#define | GPIO_InitUartRtsPin6() GPIO_Init(&(GPIO_InitType){GPIO_Pin_6, Serial1_Mode, DISABLE, DISABLE});
#define | GPIO_InitSpiClkPin0() GPIO_Init(&(GPIO_InitType){GPIO_Pin_0, Serial0_Mode, DISABLE, DISABLE});
#define | GPIO_InitSpiClkPin8() GPIO_Init(&(GPIO_InitType){GPIO_Pin_8, Serial0_Mode, DISABLE, DISABLE});
#define | GPIO_InitSpiClkPin14() GPIO_Init(&(GPIO_InitType){GPIO_Pin_14, Serial0_Mode, DISABLE, DISABLE});
#define | GPIO_InitSpiCsPin1() GPIO_Init(&(GPIO_InitType){GPIO_Pin_1, Serial0_Mode, DISABLE, DISABLE});
#define | GPIO_InitSpiCsPin11() GPIO_Init(&(GPIO_InitType){GPIO_Pin_11, Serial0_Mode, DISABLE, DISABLE});
#define | GPIO_InitSpiMosiPin2() GPIO_Init(&(GPIO_InitType){GPIO_Pin_2, Serial0_Mode, DISABLE, DISABLE});
#define | GPIO_InitSpiMosiPin10() GPIO_Init(&(GPIO_InitType){GPIO_Pin_10, Serial0_Mode, DISABLE, DISABLE});
#define | GPIO_InitSpiMisoPin9() GPIO_Init(&(GPIO_InitType){GPIO_Pin_9, Serial0_Mode, DISABLE, DISABLE});
#define | GPIO_InitSpiMisoPin3() GPIO_Init(&(GPIO_InitType){GPIO_Pin_3, Serial0_Mode, DISABLE, DISABLE});
#define | GPIO_InitI2c1ClkPin12() GPIO_Init(&(GPIO_InitType){GPIO_Pin_12, Serial0_Mode, DISABLE, DISABLE});
#define | GPIO_InitI2c1DataPin13() GPIO_Init(&(GPIO_InitType){GPIO_Pin_13, Serial0_Mode, DISABLE, DISABLE});
#define | GPIO_InitI2c1ClkPin14() GPIO_Init(&(GPIO_InitType){GPIO_Pin_14, Serial1_Mode, DISABLE, DISABLE});
#define | GPIO_InitI2c2ClkPin4() GPIO_Init(&(GPIO_InitType){GPIO_Pin_4, Serial0_Mode, DISABLE, DISABLE});
#define | GPIO_InitI2c2ClkPin6() GPIO_Init(&(GPIO_InitType){GPIO_Pin_6, Serial0_Mode, DISABLE, DISABLE});
#define | GPIO_InitI2c2DataPin5() GPIO_Init(&(GPIO_InitType){GPIO_Pin_5, Serial0_Mode, DISABLE, DISABLE});
#define | GPIO_InitI2c2DataPin7() GPIO_Init(&(GPIO_InitType){GPIO_Pin_7, Serial0_Mode, DISABLE, DISABLE});
#define | GPIO_InitPwm0Pin2() GPIO_Init(&(GPIO_InitType){GPIO_Pin_2, Serial1_Mode, DISABLE, DISABLE});
#define | GPIO_InitPwm0Pin4() GPIO_Init(&(GPIO_InitType){GPIO_Pin_4, Microphone_Mode, DISABLE, DISABLE});
#define | GPIO_InitPwm1Pin3() GPIO_Init(&(GPIO_InitType){GPIO_Pin_3, Serial1_Mode, DISABLE, DISABLE});
#define | GPIO_InitPwm1Pin5() GPIO_Init(&(GPIO_InitType){GPIO_Pin_5, Microphone_Mode, DISABLE, DISABLE});
#define | GPIO_InitPdmDataPin1() GPIO_Init(&(GPIO_InitType){GPIO_Pin_1, Microphone_Mode, DISABLE, DISABLE});
#define | GPIO_InitPdmDataPin6() GPIO_Init(&(GPIO_InitType){GPIO_Pin_6, Microphone_Mode, DISABLE, DISABLE});
#define | GPIO_InitPdmDataPin8() GPIO_Init(&(GPIO_InitType){GPIO_Pin_8, Microphone_Mode, DISABLE, DISABLE});
#define | GPIO_InitPdmDataPin14() GPIO_Init(&(GPIO_InitType){GPIO_Pin_14, Microphone_Mode, DISABLE, DISABLE});
#define | GPIO_InitPdmClockPin2() GPIO_Init(&(GPIO_InitType){GPIO_Pin_2, Microphone_Mode, DISABLE, DISABLE});
#define | GPIO_InitPdmClockPin3() GPIO_Init(&(GPIO_InitType){GPIO_Pin_3, Microphone_Mode, DISABLE, DISABLE});
#define | GPIO_InitPdmClockPin7() GPIO_Init(&(GPIO_InitType){GPIO_Pin_7, Microphone_Mode, DISABLE, DISABLE});

## Enumerations

enum | BitAction { Bit_RESET = 0, Bit_SET }
| Bit_SET and Bit_RESET enumeration. More...

## Functions

void | GPIO_DeInit (void)
| Deinitializes the GPIO peripheral registers to their default reset values. More...
void | GPIO_Init (GPIO_InitType *GPIO_InitStruct)
| Initializes the GPIO peripheral according to the specified parameters in the GPIO_InitStruct. More...
void | GPIO_StructInit (GPIO_InitType *GPIO_InitStruct)
| Fills the GPIO_InitStruct member with its default value. More...
BitAction | GPIO_ReadBit (uint16_t GPIO_Pins)
| Reads the specified input pin value. More...
void | GPIO_WriteBit (uint16_t GPIO_Pins, BitAction BitVal)
| Sets or clears the selected IO pin bit. More...
void | GPIO_SetBits (uint16_t GPIO_Pins)
| Sets the selected IO pin bit. More...
void | GPIO_ResetBits (uint16_t GPIO_Pins)
| Clears the selected IO pin bits. More...
void | GPIO_ToggleBits (uint16_t GPIO_Pins)
| Toggles data to the specified IO pin. More...
void | GPIO_EXTIStructInit (GPIO_EXTIConfigType *GPIO_EXTIInitStruct)
| Fills each GPIO_EXTIStruct member with its default value. More...
void | GPIO_EXTIConfig (GPIO_EXTIConfigType *EXTIConfig)
| Selects the GPIO pins used as EXTI Line. More...
void | GPIO_EXTICmd (uint16_t GPIO_Pins, FunctionalState NewState)
| Enables or disables interrupts on specified pins. More...
void | GPIO_ClearITPendingBit (uint16_t GPIO_Pins)
| Clears the GPIO interrupt pending bits. More...
FlagStatus | GPIO_GetITPendingBit (uint16_t GPIO_Pin)
| Checks whether the specified enabled GPIO interrupt is active. More...

## Detailed Description

This file contains all the functions prototypes for the GPIO firmware library.

Author
  VMA Application Team

Version
  V2.0.0

Date
  21-March-2016

Attention

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

##
© COPYRIGHT 2016 STMicroelectronics

Definition in file BlueNRG1_gpio.h.