STM8S/A Standard Peripherals Drivers: Exported_types

STM8S/A

STM8S/A Standard Peripherals Drivers

Defines

#define __I   volatile const
 IO definitions.
#define __IO   volatile
#define __O   volatile
#define IS_FUNCTIONALSTATE_OK(STATE)   (((STATE) == DISABLE) || ((STATE) == ENABLE))
#define S16_MAX   (32767)
#define S16_MIN   (-32768)
#define S32_MAX   (2147483647)
#define S32_MIN   (-2147483648uL)
#define S8_MAX   (127)
#define S8_MIN   (-128)
#define U16_MAX   (65535u)
#define U32_MAX   (4294967295uL)
#define U8_MAX   (255)

Typedefs

typedef enum FlagStatus BitAction
typedef enum FlagStatus BitStatus
typedef signed short int16_t
typedef signed long int32_t
typedef signed char int8_t
typedef enum FlagStatus ITStatus
typedef int16_t s16
typedef int32_t s32
typedef int8_t s8
typedef uint16_t u16
typedef uint32_t u32
typedef uint8_t u8
typedef unsigned short uint16_t
typedef unsigned long uint32_t
typedef unsigned char uint8_t

Enumerations

enum  bool { FALSE = 0, TRUE = !FALSE }
enum  ErrorStatus { ERROR = 0, SUCCESS = !ERROR }
enum  FlagStatus { RESET = 0, SET = !RESET }
enum  FunctionalState { DISABLE = 0, ENABLE = !DISABLE }

Define Documentation

#define __I   volatile const

IO definitions.

define access restrictions to peripheral registers defines 'read only' permissions

Definition at line 206 of file stm8s.h.

#define __IO   volatile

defines 'read / write' permissions Signed integer types

Definition at line 208 of file stm8s.h.

Referenced by I2C_CheckEvent(), I2C_GetITStatus(), and I2C_GetLastEvent().

#define __O   volatile

defines 'write only' permissions

Definition at line 207 of file stm8s.h.

#define IS_FUNCTIONALSTATE_OK (   STATE)    (((STATE) == DISABLE) || ((STATE) == ENABLE))

Definition at line 236 of file stm8s.h.

Referenced by ADC1_AWDChannelConfig(), ADC1_Cmd(), ADC1_DataBufferCmd(), ADC1_ExternalTriggerConfig(), ADC1_Init(), ADC1_ITConfig(), ADC1_ScanModeCmd(), ADC1_SchmittTriggerConfig(), ADC2_Cmd(), ADC2_ExternalTriggerConfig(), ADC2_Init(), ADC2_ITConfig(), ADC2_SchmittTriggerConfig(), CAN_FilterInit(), CAN_ITConfig(), CAN_TTComModeCmd(), CLK_CCOCmd(), CLK_ClockSwitchCmd(), CLK_ClockSwitchConfig(), CLK_FastHaltWakeUpCmd(), CLK_HSECmd(), CLK_HSICmd(), CLK_ITConfig(), CLK_LSICmd(), CLK_PeripheralClockConfig(), CLK_SlowActiveHaltWakeUpCmd(), FLASH_ITConfig(), GPIO_ExternalPullUpConfig(), I2C_Cmd(), I2C_GeneralCallCmd(), I2C_GenerateSTART(), I2C_GenerateSTOP(), I2C_ITConfig(), I2C_SoftwareResetCmd(), I2C_StretchClockCmd(), SPI_CalculateCRCCmd(), SPI_Cmd(), SPI_ITConfig(), SPI_NSSInternalSoftwareCmd(), TIM1_ARRPreloadConfig(), TIM1_CCPreloadControl(), TIM1_CCxCmd(), TIM1_CCxNCmd(), TIM1_Cmd(), TIM1_CtrlPWMOutputs(), TIM1_ITConfig(), TIM1_OC1FastConfig(), TIM1_OC1PreloadConfig(), TIM1_OC2FastConfig(), TIM1_OC2PreloadConfig(), TIM1_OC3FastConfig(), TIM1_OC3PreloadConfig(), TIM1_OC4FastConfig(), TIM1_OC4PreloadConfig(), TIM1_SelectCOM(), TIM1_SelectHallSensor(), TIM1_SelectMasterSlaveMode(), TIM1_UpdateDisableConfig(), TIM2_ARRPreloadConfig(), TIM2_CCxCmd(), TIM2_Cmd(), TIM2_ITConfig(), TIM2_OC1PreloadConfig(), TIM2_OC2PreloadConfig(), TIM2_OC3PreloadConfig(), TIM2_UpdateDisableConfig(), TIM3_ARRPreloadConfig(), TIM3_CCxCmd(), TIM3_Cmd(), TIM3_ITConfig(), TIM3_OC1PreloadConfig(), TIM3_OC2PreloadConfig(), TIM3_UpdateDisableConfig(), TIM4_ARRPreloadConfig(), TIM4_Cmd(), TIM4_ITConfig(), TIM4_UpdateDisableConfig(), TIM5_ARRPreloadConfig(), TIM5_CCxCmd(), TIM5_Cmd(), TIM5_ITConfig(), TIM5_OC1PreloadConfig(), TIM5_OC2PreloadConfig(), TIM5_OC3PreloadConfig(), TIM5_UpdateDisableConfig(), TIM6_ARRPreloadConfig(), TIM6_Cmd(), TIM6_ITConfig(), TIM6_SelectMasterSlaveMode(), TIM6_UpdateDisableConfig(), UART1_HalfDuplexCmd(), UART1_IrDACmd(), UART1_ITConfig(), UART1_LINCmd(), UART1_ReceiverWakeUpCmd(), UART1_SmartCardCmd(), UART1_SmartCardNACKCmd(), UART2_IrDACmd(), UART2_ITConfig(), UART2_LINCmd(), UART2_ReceiverWakeUpCmd(), UART2_SmartCardCmd(), UART2_SmartCardNACKCmd(), UART3_ITConfig(), UART3_LINCmd(), UART3_ReceiverWakeUpCmd(), UART4_HalfDuplexCmd(), UART4_IrDACmd(), UART4_ITConfig(), UART4_LINCmd(), UART4_ReceiverWakeUpCmd(), UART4_SmartCardCmd(), and UART4_SmartCardNACKCmd().

#define S16_MAX   (32767)

Definition at line 244 of file stm8s.h.

#define S16_MIN   (-32768)

Definition at line 245 of file stm8s.h.

#define S32_MAX   (2147483647)

Definition at line 247 of file stm8s.h.

#define S32_MIN   (-2147483648uL)

Definition at line 248 of file stm8s.h.

#define S8_MAX   (127)

Definition at line 241 of file stm8s.h.

#define S8_MIN   (-128)

Definition at line 242 of file stm8s.h.

#define U16_MAX   (65535u)

Definition at line 243 of file stm8s.h.

#define U32_MAX   (4294967295uL)

Definition at line 246 of file stm8s.h.

#define U8_MAX   (255)

Definition at line 240 of file stm8s.h.


Typedef Documentation

typedef enum FlagStatus BitAction
typedef enum FlagStatus BitStatus
typedef signed short int16_t

Definition at line 212 of file stm8s.h.

typedef signed long int32_t

Unsigned integer types

Definition at line 215 of file stm8s.h.

typedef signed char int8_t

Definition at line 211 of file stm8s.h.

typedef enum FlagStatus ITStatus
typedef int16_t s16

Definition at line 223 of file stm8s.h.

typedef int32_t s32

Definition at line 222 of file stm8s.h.

typedef int8_t s8

Definition at line 224 of file stm8s.h.

typedef uint16_t u16

Definition at line 227 of file stm8s.h.

typedef uint32_t u32

Definition at line 226 of file stm8s.h.

typedef uint8_t u8

Definition at line 228 of file stm8s.h.

typedef unsigned short uint16_t

Definition at line 217 of file stm8s.h.

typedef unsigned long uint32_t

STM8 Standard Peripheral Library old types (maintained for legacy purpose)

Definition at line 220 of file stm8s.h.

typedef unsigned char uint8_t

Definition at line 216 of file stm8s.h.


Enumeration Type Documentation

enum bool
Enumerator:
FALSE 
TRUE 

Definition at line 231 of file stm8s.h.

Enumerator:
ERROR 
SUCCESS 

Definition at line 238 of file stm8s.h.

enum FlagStatus
Enumerator:
RESET 
SET 

Definition at line 233 of file stm8s.h.

Enumerator:
DISABLE 
ENABLE 

Definition at line 235 of file stm8s.h.

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com