Librairie adaptée au laboratoire 2

Dependencies:   ST_INTERFACES X_NUCLEO_COMMON

Fork of X_NUCLEO_6180XA1 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.h>

Public Member Functions

 STMPE1600DigiIn (DevI2C &i2c, exp_gpio_pin_name 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 158 of file STMPE1600.h.


Constructor & Destructor Documentation

STMPE1600DigiIn ( DevI2C &  i2c,
exp_gpio_pin_name  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 166 of file STMPE1600.h.


Member Function Documentation

bool read (  )

Read the input pin.

Returns:
The pin logical state 0 or 1

Definition at line 180 of file STMPE1600.h.