| поискавой системы для электроныых деталей |
|
AN3128 датащи(PDF) 70 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3128 датащи(HTML) 70 Page - STMicroelectronics |
|
70 / 105 page ![]() Multi-input embedded GUI library firmware AN3128 70/105 Doc ID 16918 Rev 5 4.3.6 Push user button:: pBtnParam API properties JoyHal.c exports the following public structure variable: BTN_HW_Parameters_TypeDef* pBtnParam; /*Push Button Hardware Parameters Structure */ pBtnParam properties allow setting the hardware communication parameters (GPIO port, GPIO pins). ● BTN_PortSource selects the GPIO port to be used as source for event output for the push button ● BTN_PinSource is the GPIO pin for the event output ● BTN_Exti_IrqChannel selects the external line interrupts ● BTN_Exti_Line selects the external interrupt line which the push button is connected to ● BTN_Port is the GPIO port needed for the communication between push button and micro ● BTN_Pin is the GPIO pin needed for the communication between push button and micro Some examples are listed below: File: hw_config.h // Push Button DEFINES #define BUTTON_GPIO_PORT GPIOG #define BUTTON_GPIO_PIN GPIO_Pin_8 BTN_HW_Parameters_TypeDef * pBtnParam; File: hw_config.c void HWConfig_SetHardwareParams(void) { ... pBtnParam = NewBtnHwParamObj (); /* Assign the following values for Button Parameters structure*/ pBtnParam->BTN_Port = USER_BUTTON_PORT; pBtnParam->BTN_Pin = USER_BUTTON_PIN; ... } |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |