![]() |
STM32F769IDiscovery
1.00
uDANTE Audio Networking with STM32F7 DISCO board
|
Functions | |
void | stmpe811_Init (uint16_t DeviceAddr) |
Initialize the stmpe811 and configure the needed hardware resources. More... | |
void | stmpe811_Reset (uint16_t DeviceAddr) |
Reset the stmpe811 by Software. More... | |
uint16_t | stmpe811_ReadID (uint16_t DeviceAddr) |
Read the stmpe811 IO Expander device ID. More... | |
void | stmpe811_EnableGlobalIT (uint16_t DeviceAddr) |
Enable the Global interrupt. More... | |
void | stmpe811_DisableGlobalIT (uint16_t DeviceAddr) |
Disable the Global interrupt. More... | |
void | stmpe811_EnableITSource (uint16_t DeviceAddr, uint8_t Source) |
Enable the interrupt mode for the selected IT source. More... | |
void | stmpe811_DisableITSource (uint16_t DeviceAddr, uint8_t Source) |
Disable the interrupt mode for the selected IT source. More... | |
void | stmpe811_SetITPolarity (uint16_t DeviceAddr, uint8_t Polarity) |
Set the global interrupt Polarity. More... | |
void | stmpe811_SetITType (uint16_t DeviceAddr, uint8_t Type) |
Set the global interrupt Type. More... | |
uint8_t | stmpe811_GlobalITStatus (uint16_t DeviceAddr, uint8_t Source) |
Check the selected Global interrupt source pending bit. More... | |
uint8_t | stmpe811_ReadGITStatus (uint16_t DeviceAddr, uint8_t Source) |
Return the Global interrupts status. More... | |
void | stmpe811_ClearGlobalIT (uint16_t DeviceAddr, uint8_t Source) |
Clear the selected Global interrupt pending bit(s) More... | |
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). More... | |
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. More... | |
void | stmpe811_IO_InitPin (uint16_t DeviceAddr, uint32_t IO_Pin, uint8_t Direction) |
Initialize the selected IO pin direction. More... | |
void | stmpe811_IO_DisableAF (uint16_t DeviceAddr, uint32_t IO_Pin) |
Disable the AF for the selected IO pin(s). More... | |
void | stmpe811_IO_EnableAF (uint16_t DeviceAddr, uint32_t IO_Pin) |
Enable the AF for the selected IO pin(s). More... | |
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. More... | |
void | stmpe811_IO_WritePin (uint16_t DeviceAddr, uint32_t IO_Pin, uint8_t PinState) |
Write a new IO pin state. More... | |
uint32_t | stmpe811_IO_ReadPin (uint16_t DeviceAddr, uint32_t IO_Pin) |
Return the state of the selected IO pin(s). More... | |
void | stmpe811_IO_EnableIT (uint16_t DeviceAddr) |
Enable the global IO interrupt source. More... | |
void | stmpe811_IO_DisableIT (uint16_t DeviceAddr) |
Disable the global IO interrupt source. More... | |
void | stmpe811_IO_EnablePinIT (uint16_t DeviceAddr, uint32_t IO_Pin) |
Enable interrupt mode for the selected IO pin(s). More... | |
void | stmpe811_IO_DisablePinIT (uint16_t DeviceAddr, uint32_t IO_Pin) |
Disable interrupt mode for the selected IO pin(s). More... | |
uint32_t | stmpe811_IO_ITStatus (uint16_t DeviceAddr, uint32_t IO_Pin) |
Check the status of the selected IO interrupt pending bit. More... | |
void | stmpe811_IO_ClearIT (uint16_t DeviceAddr, uint32_t IO_Pin) |
Clear the selected IO interrupt pending bit(s). More... | |
void | stmpe811_TS_Start (uint16_t DeviceAddr) |
Configures the touch Screen Controller (Single point detection) More... | |
uint8_t | stmpe811_TS_DetectTouch (uint16_t DeviceAddr) |
Return if there is touch detected or not. More... | |
void | stmpe811_TS_GetXY (uint16_t DeviceAddr, uint16_t *X, uint16_t *Y) |
Get the touch screen X and Y positions values. More... | |
void | stmpe811_TS_EnableIT (uint16_t DeviceAddr) |
Configure the selected source to generate a global interrupt or not. More... | |
void | stmpe811_TS_DisableIT (uint16_t DeviceAddr) |
Configure the selected source to generate a global interrupt or not. More... | |
uint8_t | stmpe811_TS_ITStatus (uint16_t DeviceAddr) |
Configure the selected source to generate a global interrupt or not. More... | |
void | stmpe811_TS_ClearIT (uint16_t DeviceAddr) |
Configure the selected source to generate a global interrupt or not. More... | |
void stmpe811_ClearGlobalIT | ( | uint16_t | DeviceAddr, |
uint8_t | Source | ||
) |
Clear the selected Global interrupt pending bit(s)
DeviceAddr | Device address on communication Bus. |
Source | the Global interrupt source to be cleared, could be any combination of the following values:
|
None |
Definition at line 391 of file stmpe811.c.
void stmpe811_DisableGlobalIT | ( | uint16_t | DeviceAddr | ) |
Disable the Global interrupt.
DeviceAddr | Device address on communication Bus. |
None |
Definition at line 218 of file stmpe811.c.
void stmpe811_DisableITSource | ( | uint16_t | DeviceAddr, |
uint8_t | Source | ||
) |
Disable the interrupt mode for the selected IT source.
DeviceAddr | Device address on communication Bus. |
Source | The interrupt source to be configured, could be:
|
None |
Definition at line 273 of file stmpe811.c.
void stmpe811_EnableGlobalIT | ( | uint16_t | DeviceAddr | ) |
Enable the Global interrupt.
DeviceAddr | Device address on communication Bus. |
None |
Definition at line 199 of file stmpe811.c.
void stmpe811_EnableITSource | ( | uint16_t | DeviceAddr, |
uint8_t | Source | ||
) |
Enable the interrupt mode for the selected IT source.
DeviceAddr | Device address on communication Bus. |
Source | The interrupt source to be configured, could be:
|
None |
Definition at line 246 of file stmpe811.c.
uint8_t stmpe811_GlobalITStatus | ( | uint16_t | DeviceAddr, |
uint8_t | Source | ||
) |
Check the selected Global interrupt source pending bit.
DeviceAddr | Device address on communication Bus. |
Source | the Global interrupt source to be checked, could be:
|
The | checked Global interrupt source status. |
Definition at line 352 of file stmpe811.c.
void stmpe811_Init | ( | uint16_t | DeviceAddr | ) |
Initialize the stmpe811 and configure the needed hardware resources.
STMPE811 Control functions.
DeviceAddr | Device address on communication Bus. |
None |
Definition at line 131 of file stmpe811.c.
void stmpe811_IO_ClearIT | ( | uint16_t | DeviceAddr, |
uint32_t | IO_Pin | ||
) |
Clear the selected IO interrupt pending bit(s).
DeviceAddr | Device address on communication Bus. |
IO_Pin | the IO interrupt to be cleared, could be:
|
None |
Definition at line 739 of file stmpe811.c.
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.
DeviceAddr | Device address on communication Bus. |
IO_Pin | The output pin to be set or reset. This parameter can be one of the following values:
|
IO_Mode | The IO pin mode to configure, could be one of the following values:
|
0 | if no error, IO_Mode if error |
Definition at line 437 of file stmpe811.c.
void stmpe811_IO_DisableAF | ( | uint16_t | DeviceAddr, |
uint32_t | IO_Pin | ||
) |
Disable the AF for the selected IO pin(s).
DeviceAddr | Device address on communication Bus. |
IO_Pin | The IO pin to be configured. This parameter could be any combination of the following values:
|
None |
Definition at line 529 of file stmpe811.c.
void stmpe811_IO_DisableIT | ( | uint16_t | DeviceAddr | ) |
Disable the global IO interrupt source.
DeviceAddr | Device address on communication Bus. |
None |
Definition at line 666 of file stmpe811.c.
void stmpe811_IO_DisablePinIT | ( | uint16_t | DeviceAddr, |
uint32_t | IO_Pin | ||
) |
Disable interrupt mode for the selected IO pin(s).
DeviceAddr | Device address on communication Bus. |
IO_Pin | The IO interrupt to be disabled. This parameter could be any combination of the following values:
|
None |
Definition at line 705 of file stmpe811.c.
void stmpe811_IO_EnableAF | ( | uint16_t | DeviceAddr, |
uint32_t | IO_Pin | ||
) |
Enable the AF for the selected IO pin(s).
DeviceAddr | Device address on communication Bus. |
IO_Pin | The IO pin to be configured. This parameter could be any combination of the following values:
|
None |
Definition at line 552 of file stmpe811.c.
void stmpe811_IO_EnableIT | ( | uint16_t | DeviceAddr | ) |
Enable the global IO interrupt source.
DeviceAddr | Device address on communication Bus. |
None |
Definition at line 650 of file stmpe811.c.
void stmpe811_IO_EnablePinIT | ( | uint16_t | DeviceAddr, |
uint32_t | IO_Pin | ||
) |
Enable interrupt mode for the selected IO pin(s).
DeviceAddr | Device address on communication Bus. |
IO_Pin | The IO interrupt to be enabled. This parameter could be any combination of the following values:
|
None |
Definition at line 683 of file stmpe811.c.
void stmpe811_IO_InitPin | ( | uint16_t | DeviceAddr, |
uint32_t | IO_Pin, | ||
uint8_t | Direction | ||
) |
Initialize the selected IO pin direction.
DeviceAddr | Device address on communication Bus. |
IO_Pin | The IO pin to be configured. This parameter could be any combination of the following values:
|
Direction | could be STMPE811_DIRECTION_IN or STMPE811_DIRECTION_OUT. |
None |
Definition at line 500 of file stmpe811.c.
uint32_t stmpe811_IO_ITStatus | ( | uint16_t | DeviceAddr, |
uint32_t | IO_Pin | ||
) |
Check the status of the selected IO interrupt pending bit.
DeviceAddr | Device address on communication Bus. |
IO_Pin | The IO interrupt to be checked could be:
|
Status | of the checked IO pin(s). |
Definition at line 726 of file stmpe811.c.
uint32_t stmpe811_IO_ReadPin | ( | uint16_t | DeviceAddr, |
uint32_t | IO_Pin | ||
) |
Return the state of the selected IO pin(s).
DeviceAddr | Device address on communication Bus. |
IO_Pin | The output pin to be set or reset. This parameter can be one of the following values:
|
IO | pin(s) state. |
Definition at line 640 of file stmpe811.c.
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.
DeviceAddr | Device address on communication Bus. |
IO_Pin | The IO pin to be configured. This parameter could be any combination of the following values:
|
Edge | The edge which will be detected. This parameter can be one or a combination of following values: STMPE811_EDGE_FALLING and STMPE811_EDGE_RISING . |
None |
Definition at line 577 of file stmpe811.c.
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).
STMPE811 IO functionalities functions.
DeviceAddr | Device address on communication Bus. |
IO_Pin | The IO pin(s) to put in AF. This parameter can be one of the following values:
|
None |
Definition at line 405 of file stmpe811.c.
void stmpe811_IO_WritePin | ( | uint16_t | DeviceAddr, |
uint32_t | IO_Pin, | ||
uint8_t | PinState | ||
) |
Write a new IO pin state.
DeviceAddr | Device address on communication Bus. |
IO_Pin | The output pin to be set or reset. This parameter can be one of the following values:
|
PinState | The new IO pin state. |
None |
Definition at line 617 of file stmpe811.c.
uint8_t stmpe811_ReadGITStatus | ( | uint16_t | DeviceAddr, |
uint8_t | Source | ||
) |
Return the Global interrupts status.
DeviceAddr | Device address on communication Bus. |
Source | the Global interrupt source to be checked, could be:
|
The | checked Global interrupt source status. |
Definition at line 371 of file stmpe811.c.
uint16_t stmpe811_ReadID | ( | uint16_t | DeviceAddr | ) |
Read the stmpe811 IO Expander device ID.
DeviceAddr | Device address on communication Bus. |
The | Device ID (two bytes). |
Definition at line 184 of file stmpe811.c.
void stmpe811_Reset | ( | uint16_t | DeviceAddr | ) |
Reset the stmpe811 by Software.
DeviceAddr | Device address on communication Bus. |
None |
Definition at line 164 of file stmpe811.c.
void stmpe811_SetITPolarity | ( | uint16_t | DeviceAddr, |
uint8_t | Polarity | ||
) |
Set the global interrupt Polarity.
DeviceAddr | Device address on communication Bus. |
Polarity | the IT mode polarity, could be one of the following values:
|
None |
Definition at line 295 of file stmpe811.c.
void stmpe811_SetITType | ( | uint16_t | DeviceAddr, |
uint8_t | Type | ||
) |
Set the global interrupt Type.
DeviceAddr | Device address on communication Bus. |
Type | Interrupt line activity type, could be one of the following values:
|
None |
Definition at line 321 of file stmpe811.c.
void stmpe811_TS_ClearIT | ( | uint16_t | DeviceAddr | ) |
Configure the selected source to generate a global interrupt or not.
DeviceAddr | Device address on communication Bus. |
None |
Definition at line 933 of file stmpe811.c.
uint8_t stmpe811_TS_DetectTouch | ( | uint16_t | DeviceAddr | ) |
Return if there is touch detected or not.
DeviceAddr | Device address on communication Bus. |
Touch | detected state. |
Definition at line 837 of file stmpe811.c.
void stmpe811_TS_DisableIT | ( | uint16_t | DeviceAddr | ) |
Configure the selected source to generate a global interrupt or not.
DeviceAddr | Device address on communication Bus. |
None |
Definition at line 908 of file stmpe811.c.
void stmpe811_TS_EnableIT | ( | uint16_t | DeviceAddr | ) |
Configure the selected source to generate a global interrupt or not.
DeviceAddr | Device address on communication Bus. |
None |
Definition at line 892 of file stmpe811.c.
void stmpe811_TS_GetXY | ( | uint16_t | DeviceAddr, |
uint16_t * | X, | ||
uint16_t * | Y | ||
) |
Get the touch screen X and Y positions values.
DeviceAddr | Device address on communication Bus. |
X | Pointer to X position value |
Y | Pointer to Y position value |
None. |
Definition at line 869 of file stmpe811.c.
uint8_t stmpe811_TS_ITStatus | ( | uint16_t | DeviceAddr | ) |
Configure the selected source to generate a global interrupt or not.
DeviceAddr | Device address on communication Bus. |
TS | interrupts status |
Definition at line 922 of file stmpe811.c.
void stmpe811_TS_Start | ( | uint16_t | DeviceAddr | ) |
Configures the touch Screen Controller (Single point detection)
STMPE811 Touch screen functionalities functions.
DeviceAddr | Device address on communication Bus. |
None. |
Definition at line 762 of file stmpe811.c.