Changes to the library related to interrupt mode.

Dependencies:   ST_INTERFACES X_NUCLEO_COMMON

Dependents:   Display_53L0A1_IntSatelites Display_53L0A1_InterruptMode

Fork of X_NUCLEO_53L0A1 by ST

Embed: (wiki syntax)

« Back to documentation index

STMPE1600DigiIn Class Reference

STMPE1600DigiIn Class Reference

Class representing a single stmpe1600 GPIO expander input pin. More...

#include <stmpe1600_class.h>

Public Member Functions

 STMPE1600DigiIn (DevI2C &i2c, ExpGpioPinName inpinname, uint8_t DevAddr=STMPE1600_DEF_DEVICE_ADDRESS)
 Constructor.
bool read ()
 Read the input pin.

Detailed Description

Class representing a single stmpe1600 GPIO expander input pin.

Definition at line 151 of file stmpe1600_class.h.


Constructor & Destructor Documentation

STMPE1600DigiIn ( DevI2C &  i2c,
ExpGpioPinName  inpinname,
uint8_t  DevAddr = STMPE1600_DEF_DEVICE_ADDRESS 
)

Constructor.

Parameters:
[in]&i2cdevice I2C to be used for communication
[in]inpinnamethe desired input pin name to be created
[in]DevAddrthe stmpe1600 I2C device addres (deft STMPE1600_DEF_DEVICE_ADDRESS)

Definition at line 159 of file stmpe1600_class.h.


Member Function Documentation

bool read (  )

Read the input pin.

Returns:
The pin logical state 0 or 1

Definition at line 173 of file stmpe1600_class.h.