| 数据搜索系统,热门电子元器件搜索 |
|
AN3128 数据表(PDF) 67 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3128 数据表(HTML) 67 Page - STMicroelectronics |
|
67 / 105 page ![]() AN3128 Multi-input embedded GUI library firmware Doc ID 16918 Rev 5 67/105 pLcdParam->LCD_Rcc_Apb_Periph = LCD_RCC_APB_PERIPH; pLcdParam->LCD_Rcc_Ahb_Periph = LCD_RCC_AHB_PERIPH; pLcdParam->LCD_Bus_Port = LCD_SPI_PORT; pLcdParam->LCD_Connection_Mode = LCD_CONNECTION_MODE; ... } 4.3.4 Touchscreen:: pTscParam API properties TscHal.c exports the following public structure variable: TSC_HW_Parameters_TypeDef * pTscHwParam; /* Touchscreen Hardware Parameters Structure */ pTscParam properties allow setting the hardware communication parameters (Bus GPIO port, GPIO pins). ● TSC_PortSource selects the GPIO port to be used as source for event output for the touchscreen controller ● TSC_PinSource is the GPIO pin for the event output ● TSC_Exti_IrqChannel selects the external line interrupts ● TSC_Exti_Line selects the external interrupt line which the touchscreen controller is connected to ● TSC_Gpio_Port is the GPIO port needed for the communication between the touchscreen controller and micro ● TSC_Gpio_Pin is the GPIO pin needed for the communication between the touchscreen controller and micro ● TSC_DeviceRegister selects the touchscreen controller if two STMPE811s are connected to be used as the IO expander ● TSC_Bus_Port is the communication interface channel for the communication between the touchscreen controller and the microcontroller. Some examples are listed below: File: hw_config.h // Touchscreen Controller DEFINES #define TSC_GPIO_PORT_SOURCE GPIO_PortSourceGPIOB #define TSC_GPIO_PIN_SOURCE GPIO_PinSource14 #define TSC_EXTI_IRQ_CHANNEL EXTI15_10_IRQn #define TSC_EXTI_LINE EXTI_Line14 #define TSC_GPIO_PORT GPIOA #define TSC_GPIO_PIN GPIO_Pin_14 #define TSC_I2C_DEVICE_REGISTER 0x82 #define TSC_I2C_PORT I2C1 TSC_HW_Parameters_TypeDef* pTscParam; File: hw_config.c void HWConfig_SetHardwareParams(void) { ... pTscParam = NewTscHwParamObj(); /* Assign the following value for Touchscreen Controller Parameters Structure */ pTscParam->TSC_PortSource = GL_GPIO_TSC_PORT_SOURCE; pTscParam->TSC_PinSource = GL_GPIO_TSC_PIN_SOURCE; pTscParam->TSC_Exti_IrqChannel = TSC_EXTI_IRQ_CHANNEL; pTscParam->TSC_Exti_Line = TSC_EXTI_LINE; |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |