STM8L15x Standard Peripherals Drivers
|
stm8l15x_exti.h File Reference
This file contains all the functions prototypes for the EXTI firmware library. More...
#include "stm8l15x.h"
Go to the source code of this file.
Defines | |
#define | IS_EXTI_HALFPORT(HALFPORT) |
Macro used by the assert function in order to check the different half ports values for configuration. | |
#define | IS_EXTI_ITPENDINGBIT(ITPENDINGBIT) |
Macro used by the assert function in order to check the different flags values. | |
#define | IS_EXTI_PINNUM(PINNUM) |
Macro used by the assert function in order to check the different Pin numbers values. | |
#define | IS_EXTI_PORT(PORT) |
Macro used by the assert function in order to check the different Port Number values. | |
#define | IS_EXTI_TRIGGER(TRIGGER) |
Macro used by the assert function to check the different functions parameters. | |
Enumerations | |
enum | EXTI_HalfPort_TypeDef { EXTI_HalfPort_B_LSB = (uint8_t)0x01, EXTI_HalfPort_B_MSB = (uint8_t)0x02, EXTI_HalfPort_D_LSB = (uint8_t)0x04, EXTI_HalfPort_D_MSB = (uint8_t)0x08, EXTI_HalfPort_E_LSB = (uint8_t)0x10, EXTI_HalfPort_E_MSB = (uint8_t)0x20, EXTI_HalfPort_F_LSB = (uint8_t)0x40, EXTI_HalfPort_F_MSB = (uint8_t)0x81, EXTI_HalfPort_G_LSB = (uint8_t)0x82, EXTI_HalfPort_G_MSB = (uint8_t)0x84, EXTI_HalfPort_H_LSB = (uint8_t)0x88, EXTI_HalfPort_H_MSB = (uint8_t)0x90 } |
enum | EXTI_IT_TypeDef { EXTI_IT_Pin0 = (uint16_t)0x0001, EXTI_IT_Pin1 = (uint16_t)0x0002, EXTI_IT_Pin2 = (uint16_t)0x0004, EXTI_IT_Pin3 = (uint16_t)0x0008, EXTI_IT_Pin4 = (uint16_t)0x0010, EXTI_IT_Pin5 = (uint16_t)0x0020, EXTI_IT_Pin6 = (uint16_t)0x0040, EXTI_IT_Pin7 = (uint16_t)0x0080, EXTI_IT_PortB = (uint16_t)0x0101, EXTI_IT_PortD = (uint16_t)0x0102, EXTI_IT_PortE = (uint16_t)0x0104, EXTI_IT_PortF = (uint16_t)0x0108, EXTI_IT_PortG = (uint16_t)0x0110, EXTI_IT_PortH = (uint16_t)0x0120 } |
enum | EXTI_Pin_TypeDef { EXTI_Pin_0 = (uint8_t)0x00, EXTI_Pin_1 = (uint8_t)0x02, EXTI_Pin_2 = (uint8_t)0x04, EXTI_Pin_3 = (uint8_t)0x06, EXTI_Pin_4 = (uint8_t)0x10, EXTI_Pin_5 = (uint8_t)0x12, EXTI_Pin_6 = (uint8_t)0x14, EXTI_Pin_7 = (uint8_t)0x16 } |
enum | EXTI_Port_TypeDef { EXTI_Port_B = (uint8_t)0x00, EXTI_Port_D = (uint8_t)0x02, EXTI_Port_E = (uint8_t)0x04, EXTI_Port_F = (uint8_t)0x06, EXTI_Port_G = (uint8_t)0x10, EXTI_Port_H = (uint8_t)0x12 } |
enum | EXTI_Trigger_TypeDef { EXTI_Trigger_Falling_Low = (uint8_t)0x00, EXTI_Trigger_Rising = (uint8_t)0x01, EXTI_Trigger_Falling = (uint8_t)0x02, EXTI_Trigger_Rising_Falling = (uint8_t)0x03 } |
Functions | |
void | EXTI_ClearITPendingBit (EXTI_IT_TypeDef EXTI_IT) |
Clears the specified interrupt pending bit. | |
void | EXTI_DeInit (void) |
Deinitializes the EXTI registers to their default reset value. | |
ITStatus | EXTI_GetITStatus (EXTI_IT_TypeDef EXTI_IT) |
Gets the external interrupt status. | |
EXTI_Trigger_TypeDef | EXTI_GetPinSensitivity (EXTI_Pin_TypeDef EXTI_Pin) |
Gets the external interrupt sensitivity of the selected pin. | |
EXTI_Trigger_TypeDef | EXTI_GetPortSensitivity (EXTI_Port_TypeDef EXTI_Port) |
Gets the external interrupt sensitivity of the selected port. | |
void | EXTI_SelectPort (EXTI_Port_TypeDef EXTI_Port) |
Selects the port interrupt selection. | |
void | EXTI_SetHalfPortSelection (EXTI_HalfPort_TypeDef EXTI_HalfPort, FunctionalState NewState) |
Configures the half port interrupt selection. | |
void | EXTI_SetPinSensitivity (EXTI_Pin_TypeDef EXTI_Pin, EXTI_Trigger_TypeDef EXTI_Trigger) |
Sets the external interrupt sensitivity of the selected pin. | |
void | EXTI_SetPortSensitivity (EXTI_Port_TypeDef EXTI_Port, EXTI_Trigger_TypeDef EXTI_Trigger) |
Sets the external interrupt sensitivity of the selected port. |
Detailed Description
This file contains all the functions prototypes for the EXTI firmware library.
- 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 2011 STMicroelectronics
Definition in file stm8l15x_exti.h.