Datasheet 搜索 > 微控制器 > ST Microelectronics(意法半导体) > STM32F100R6T6B 数据手册 > STM32F100R6T6B 产品设计参考手册 5/27 页


¥ 15.842
STM32F100R6T6B 产品设计参考手册 - ST Microelectronics(意法半导体)
制造商:
ST Microelectronics(意法半导体)
分类:
微控制器
封装:
LQFP-64
描述:
STMICROELECTRONICS STM32F100R6T6B 芯片, 微控制器, 32位, ARM CORTEXM3, 24MHZ, 64-LQFP
Pictures:
3D模型
符号图
焊盘图
引脚图
产品图
页面导航:
应用领域在P27
导航目录
STM32F100R6T6B数据手册
Page:
of 27 Go
若手册格式错乱,请下载阅览PDF原文件

UM0588 Document and library rules
5/27
2 Document and library rules
2.1 Predefined values and structures
2.1.1 Value: ERROR and SUCCESS
typedef enum
{
ERROR = 0,
SUCCESS = !ERROR
} ErrorStatus;
These values return the result of the functions. The value is ERROR if the function failed
and SUCCESS otherwise.
2.1.2 Structure: buttonsAndADC
struct buttonsAndADC
{
unsigned char buttonLeft;
unsigned char buttonRight;
unsigned char buttonCenter;
unsigned char (*buttonKnob)(void);
};
This global structure is defined in board_control.c, and declared in board_control.h. It
provides the status of the STEVAL-ILL015V1 buttons and knob.
Variables linked to the buttons are set to ‘1’ when the button is pressed. It remains ‘1’ until
the user resets it.
Calling buttonKnob() returns the knob current value (variable resistor connected to the
ADC).
The following commands must be executed to be able to use this structure. The functions
are declared in board_control.h (BC prefix stands for Board Control):
BC_GPIO_Configuration();
BC_EXTI_Configuration();
BC_NVIC_Configuration();
BC_ADC_Configuration();
器件 Datasheet 文档搜索
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件