Updates to follow mbed SDK coding style guidelines.
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Dependents: 53L0A1_Satellites_with_Interrupts_OS5 Display_53L0A1_OS5
Fork of X_NUCLEO_53L0A1 by
Stmpe1600DigiOut Class Reference
Class representing a single stmpe1600 GPIO expander output pin. More...
#include <stmpe1600_class.h>
Public Member Functions | |
| Stmpe1600DigiOut (DevI2C &i2c, ExpGpioPinName out_pin_name, uint8_t dev_addr=STMPE1600_DEF_DEVICE_ADDRESS, bool lvl=STMPE1600_DEF_DIGIOUT_LVL) | |
| Constructor. | |
| void | write (int lvl) |
| Write on the out pin. | |
| Stmpe1600DigiOut & | operator= (int lvl) |
| Overload assignement operator. | |
Detailed Description
Class representing a single stmpe1600 GPIO expander output pin.
Definition at line 99 of file stmpe1600_class.h.
Constructor & Destructor Documentation
| Stmpe1600DigiOut | ( | DevI2C & | i2c, |
| ExpGpioPinName | out_pin_name, | ||
| uint8_t | dev_addr = STMPE1600_DEF_DEVICE_ADDRESS, |
||
| bool | lvl = STMPE1600_DEF_DIGIOUT_LVL |
||
| ) |
Constructor.
- Parameters:
-
[in] &i2c device I2C to be used for communication [in] outpinname the desired out pin name to be created [in] DevAddr the stmpe1600 I2C device address (deft STMPE1600_DEF_DEVICE_ADDRESS) [in] lvl the default ot pin level
Definition at line 110 of file stmpe1600_class.h.
Member Function Documentation
| Stmpe1600DigiOut& operator= | ( | int | lvl ) |
Overload assignement operator.
Definition at line 149 of file stmpe1600_class.h.
| void write | ( | int | lvl ) |
Write on the out pin.
- Parameters:
-
[in] lvl level to write
- Returns:
- 0 on Success
Definition at line 131 of file stmpe1600_class.h.
Generated on Wed Jul 13 2022 19:35:41 by
1.7.2
