Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Dependents: Display_53L0A1_IntSatelites Display_53L0A1_InterruptMode
Fork of X_NUCLEO_53L0A1 by
STMPE1600 Class Reference
Class representing a whole stmpe1600 component (16 gpio) More...
#include <stmpe1600_class.h>
Public Member Functions | |
| STMPE1600 (DevI2C &i2c, uint8_t DevAddr=STMPE1600_DEF_DEVICE_ADDRESS) | |
| Constructor.   | |
| void | writeSYS_CTRL (uint8_t data) | 
| Write the SYS_CTRL register.   | |
| bool | setGPIO (ExpGpioPinName PinName) | 
| Set the out pin.   | |
| bool | clrGPIO (ExpGpioPinName PinName) | 
| Clear the out pin.   | |
| bool | rdGPIO (ExpGpioPinName PinName) | 
| Read the input pin.   | |
| bool | setGPIOdir (ExpGpioPinName PinName, ExpGpioPinDirection PinDir) | 
| Set the pin direction.   | |
| void | read16bitReg (uint8_t Reg16Addr, uint16_t *Reg16Data) | 
| Read a 16 bits register.   | |
| void | write16bitReg (uint8_t Reg16Addr, uint16_t *Reg16Data) | 
| Write a 16 bits register.   | |
Detailed Description
Class representing a whole stmpe1600 component (16 gpio)
Definition at line 198 of file stmpe1600_class.h.
Constructor & Destructor Documentation
| STMPE1600 | ( | DevI2C & | i2c, | 
| uint8_t |  DevAddr = STMPE1600_DEF_DEVICE_ADDRESS  | 
        ||
| ) | 
Constructor.
- Parameters:
 - 
  
[in] &i2c device I2C to be used for communication [in] DevAddr the stmpe1600 I2C device addres (deft STMPE1600_DEF_DEVICE_ADDRESS)  
Definition at line 205 of file stmpe1600_class.h.
Member Function Documentation
| bool clrGPIO | ( | ExpGpioPinName | PinName ) | 
Clear the out pin.
- Parameters:
 - 
  
[in] The pin name  
- Returns:
 - 0 on Success
 
Definition at line 244 of file stmpe1600_class.h.
| bool rdGPIO | ( | ExpGpioPinName | PinName ) | 
Read the input pin.
- Parameters:
 - 
  
[in] The pin name  
- Returns:
 - The logical pin level
 
Definition at line 257 of file stmpe1600_class.h.
| void read16bitReg | ( | uint8_t | Reg16Addr, | 
| uint16_t * | Reg16Data | ||
| ) | 
Read a 16 bits register.
- Parameters:
 - 
  
[in] The register address [in] The pointer to the read data  
Definition at line 287 of file stmpe1600_class.h.
| bool setGPIO | ( | ExpGpioPinName | PinName ) | 
Set the out pin.
- Parameters:
 - 
  
[in] The pin name  
- Returns:
 - 0 on Success
 
Definition at line 231 of file stmpe1600_class.h.
| bool setGPIOdir | ( | ExpGpioPinName | PinName, | 
| ExpGpioPinDirection | PinDir | ||
| ) | 
Set the pin direction.
- Parameters:
 - 
  
[in] The pin name [in] The pin direction  
- Returns:
 - 0 on success
 
Definition at line 273 of file stmpe1600_class.h.
| void write16bitReg | ( | uint8_t | Reg16Addr, | 
| uint16_t * | Reg16Data | ||
| ) | 
Write a 16 bits register.
- Parameters:
 - 
  
[in] The register address [in] The pointer to the data to be written  
Definition at line 297 of file stmpe1600_class.h.
| void writeSYS_CTRL | ( | uint8_t | data ) | 
Write the SYS_CTRL register.
- Parameters:
 - 
  
[in] Data to be written (bit fields)  
Definition at line 221 of file stmpe1600_class.h.
Generated on Tue Jul 12 2022 21:41:59 by
 1.7.2 
    