Librairie adaptée au laboratoire 2


Fork of X_NUCLEO_6180XA1 by ST

Embed: (wiki syntax)

« Back to documentation index

STMPE1600DigiOut Class Reference

STMPE1600DigiOut Class Reference

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

#include <STMPE1600.h>

Public Member Functions

 STMPE1600DigiOut (DevI2C &i2c, exp_gpio_pin_name outpinname, uint8_t DevAddr=STMPE1600_DEF_DEVICE_ADDRESS, bool lvl=STMPE1600_DEF_DIGIOUT_LVL)
void write (int lvl)
 Write on the out pin.
STMPE1600DigiOutoperator= (int lvl)
 Overload assignement operator.

Detailed Description

Class representing a single stmpe1600 GPIO expander output pin.

Definition at line 98 of file STMPE1600.h.

Constructor & Destructor Documentation

STMPE1600DigiOut ( DevI2C &  i2c,
exp_gpio_pin_name  outpinname,
uint8_t  DevAddr = STMPE1600_DEF_DEVICE_ADDRESS,
bool  lvl = STMPE1600_DEF_DIGIOUT_LVL 


[in]&i2cdevice I2C to be used for communication
[in]outpinnamethe desired out pin name to be created
[in]DevAddrthe stmpe1600 I2C device addres (deft STMPE1600_DEF_DEVICE_ADDRESS)
[in]lvlthe default ot pin level

Definition at line 106 of file STMPE1600.h.

Member Function Documentation

STMPE1600DigiOut& operator= ( int  lvl )

Overload assignement operator.

Definition at line 143 of file STMPE1600.h.

void write ( int  lvl )

Write on the out pin.

[in]lvllevel to write
0 on Success

Definition at line 129 of file STMPE1600.h.