Updates to follow mbed SDK coding style guidelines.


Dependents:   53L0A1_Satellites_with_Interrupts_OS5 Display_53L0A1_OS5

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 in_pin_name, uint8_t dev_addr=STMPE1600_DEF_DEVICE_ADDRESS)
bool read ()
 Read the input pin.

Detailed Description

Class representing a single stmpe1600 GPIO expander input pin.

Definition at line 165 of file stmpe1600_class.h.

Constructor & Destructor Documentation

Stmpe1600DigiIn ( DevI2C &  i2c,
ExpGpioPinName  in_pin_name,
uint8_t  dev_addr = STMPE1600_DEF_DEVICE_ADDRESS 


[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 174 of file stmpe1600_class.h.

Member Function Documentation

bool read (  )

Read the input pin.

The pin logical state 0 or 1

Definition at line 192 of file stmpe1600_class.h.