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: X_NUCLEO_COMMON ST_INTERFACES
Stmpe1600 Class Reference
Class representing a whole stmpe1600 component (16 gpio) More...
#include <Stmpe1600.h>
Public Member Functions | |
| Stmpe1600 (DevI2C *i2c, uint8_t dev_addr=STMPE1600_DEF_DEVICE_ADDRESS) | |
| Constructor. | |
| void | write_sys_ctrl (uint8_t data) |
| Write the SYS_CTRL register. | |
| bool | set_gpio (ExpGpioPinName pin_name) |
| Set the out pin. | |
| bool | clear_gpio (ExpGpioPinName pin_name) |
| Clear the out pin. | |
| bool | read_gpio (ExpGpioPinName pin_name) |
| Read the input pin. | |
| bool | set_gpio_dir (ExpGpioPinName pin_name, ExpGpioPinDirection pin_dir) |
| Set the pin direction. | |
| void | read_16bit_reg (uint8_t reg16_addr, uint16_t *reg16_data) |
| Read a 16 bits register. | |
| void | write_16bit_reg (uint8_t reg16_addr, uint16_t *reg16_data) |
| Write a 16 bits register. | |
Detailed Description
Class representing a whole stmpe1600 component (16 gpio)
Definition at line 218 of file Stmpe1600.h.
Constructor & Destructor Documentation
| Stmpe1600 | ( | DevI2C * | i2c, |
| uint8_t | dev_addr = 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 226 of file Stmpe1600.h.
Member Function Documentation
| bool clear_gpio | ( | ExpGpioPinName | pin_name ) |
Clear the out pin.
- Parameters:
-
[in] The pin name
- Returns:
- 0 on Success
Definition at line 266 of file Stmpe1600.h.
| void read_16bit_reg | ( | uint8_t | reg16_addr, |
| uint16_t * | reg16_data | ||
| ) |
Read a 16 bits register.
- Parameters:
-
[in] The register address [in] The pointer to the read data
Definition at line 317 of file Stmpe1600.h.
| bool read_gpio | ( | ExpGpioPinName | pin_name ) |
Read the input pin.
- Parameters:
-
[in] The pin name
- Returns:
- The logical pin level
Definition at line 281 of file Stmpe1600.h.
| bool set_gpio | ( | ExpGpioPinName | pin_name ) |
Set the out pin.
- Parameters:
-
[in] The pin name
- Returns:
- 0 on Success
Definition at line 251 of file Stmpe1600.h.
| bool set_gpio_dir | ( | ExpGpioPinName | pin_name, |
| ExpGpioPinDirection | pin_dir | ||
| ) |
Set the pin direction.
- Parameters:
-
[in] The pin name [in] The pin direction
- Returns:
- 0 on success
Definition at line 301 of file Stmpe1600.h.
| void write_16bit_reg | ( | uint8_t | reg16_addr, |
| uint16_t * | reg16_data | ||
| ) |
Write a 16 bits register.
- Parameters:
-
[in] The register address [in] The pointer to the data to be written
Definition at line 327 of file Stmpe1600.h.
| void write_sys_ctrl | ( | uint8_t | data ) |
Write the SYS_CTRL register.
- Parameters:
-
[in] Data to be written (bit fields)
Definition at line 241 of file Stmpe1600.h.
Generated on Tue Jul 19 2022 22:08:04 by
1.7.2