STM32F429ZI Discovery board drivers
Dependents: 2a 2b 2c 2d1 ... more
stmpe811.c File Reference
This file provides a set of functions needed to manage the STMPE811 IO Expander devices. More...
Go to the source code of this file.
Functions | |
static uint8_t | stmpe811_GetInstance (uint16_t DeviceAddr) |
Check if the device instance of the selected address is already registered and return its index. | |
void | stmpe811_Init (uint16_t DeviceAddr) |
Initialize the stmpe811 and configure the needed hardware resources. | |
void | stmpe811_Reset (uint16_t DeviceAddr) |
Reset the stmpe811 by Software. | |
uint16_t | stmpe811_ReadID (uint16_t DeviceAddr) |
Read the stmpe811 IO Expander device ID. | |
void | stmpe811_EnableGlobalIT (uint16_t DeviceAddr) |
Enable the Global interrupt. | |
void | stmpe811_DisableGlobalIT (uint16_t DeviceAddr) |
Disable the Global interrupt. | |
void | stmpe811_EnableITSource (uint16_t DeviceAddr, uint8_t Source) |
Enable the interrupt mode for the selected IT source. | |
void | stmpe811_DisableITSource (uint16_t DeviceAddr, uint8_t Source) |
Disable the interrupt mode for the selected IT source. | |
void | stmpe811_SetITPolarity (uint16_t DeviceAddr, uint8_t Polarity) |
Set the global interrupt Polarity. | |
void | stmpe811_SetITType (uint16_t DeviceAddr, uint8_t Type) |
Set the global interrupt Type. | |
uint8_t | stmpe811_GlobalITStatus (uint16_t DeviceAddr, uint8_t Source) |
Check the selected Global interrupt source pending bit. | |
uint8_t | stmpe811_ReadGITStatus (uint16_t DeviceAddr, uint8_t Source) |
Return the Global interrupts status. | |
void | stmpe811_ClearGlobalIT (uint16_t DeviceAddr, uint8_t Source) |
Clear the selected Global interrupt pending bit(s) | |
void | stmpe811_IO_Start (uint16_t DeviceAddr, uint32_t IO_Pin) |
Start the IO functionality use and disable the AF for selected IO pin(s). | |
uint8_t | stmpe811_IO_Config (uint16_t DeviceAddr, uint32_t IO_Pin, IO_ModeTypedef IO_Mode) |
Configures the IO pin(s) according to IO mode structure value. | |
void | stmpe811_IO_InitPin (uint16_t DeviceAddr, uint32_t IO_Pin, uint8_t Direction) |
Initialize the selected IO pin direction. | |
void | stmpe811_IO_DisableAF (uint16_t DeviceAddr, uint32_t IO_Pin) |
Disable the AF for the selected IO pin(s). | |
void | stmpe811_IO_EnableAF (uint16_t DeviceAddr, uint32_t IO_Pin) |
Enable the AF for the selected IO pin(s). | |
void | stmpe811_IO_SetEdgeMode (uint16_t DeviceAddr, uint32_t IO_Pin, uint8_t Edge) |
Configure the Edge for which a transition is detectable for the selected pin. | |
void | stmpe811_IO_WritePin (uint16_t DeviceAddr, uint32_t IO_Pin, uint8_t PinState) |
Write a new IO pin state. | |
uint32_t | stmpe811_IO_ReadPin (uint16_t DeviceAddr, uint32_t IO_Pin) |
Return the state of the selected IO pin(s). | |
void | stmpe811_IO_EnableIT (uint16_t DeviceAddr) |
Enable the global IO interrupt source. | |
void | stmpe811_IO_DisableIT (uint16_t DeviceAddr) |
Disable the global IO interrupt source. | |
void | stmpe811_IO_EnablePinIT (uint16_t DeviceAddr, uint32_t IO_Pin) |
Enable interrupt mode for the selected IO pin(s). | |
void | stmpe811_IO_DisablePinIT (uint16_t DeviceAddr, uint32_t IO_Pin) |
Disable interrupt mode for the selected IO pin(s). | |
uint32_t | stmpe811_IO_ITStatus (uint16_t DeviceAddr, uint32_t IO_Pin) |
Check the status of the selected IO interrupt pending bit. | |
void | stmpe811_IO_ClearIT (uint16_t DeviceAddr, uint32_t IO_Pin) |
Clear the selected IO interrupt pending bit(s). | |
void | stmpe811_TS_Start (uint16_t DeviceAddr) |
Configures the touch Screen Controller (Single point detection) | |
uint8_t | stmpe811_TS_DetectTouch (uint16_t DeviceAddr) |
Return if there is touch detected or not. | |
void | stmpe811_TS_GetXY (uint16_t DeviceAddr, uint16_t *X, uint16_t *Y) |
Get the touch screen X and Y positions values. | |
void | stmpe811_TS_EnableIT (uint16_t DeviceAddr) |
Configure the selected source to generate a global interrupt or not. | |
void | stmpe811_TS_DisableIT (uint16_t DeviceAddr) |
Configure the selected source to generate a global interrupt or not. | |
uint8_t | stmpe811_TS_ITStatus (uint16_t DeviceAddr) |
Configure the selected source to generate a global interrupt or not. | |
void | stmpe811_TS_ClearIT (uint16_t DeviceAddr) |
Configure the selected source to generate a global interrupt or not. |
Detailed Description
This file provides a set of functions needed to manage the STMPE811 IO Expander devices.
- Version:
- V2.0.0
- Date:
- 15-December-2014
- Attention:
© COPYRIGHT(c) 2014 STMicroelectronics
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file stmpe811.c.
Generated on Tue Jul 12 2022 16:29:23 by 1.7.2