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

STMPE1600 Class Reference

STMPE1600 Class Reference

Class representing a whole stmpe1600 component (16 gpio) More...

#include <stmpe1600_class.h>

Public Member Functions

 STMPE1600 (DevI2C &i2c, uint8_t DevAddr=STMPE1600_DEF_DEVICE_ADDRESS)
 Constructor.
void writeSYS_CTRL (uint8_t data)
 Write the SYS_CTRL register.
bool setGPIO (ExpGpioPinName PinName)
 Set the out pin.
bool clrGPIO (ExpGpioPinName PinName)
 Clear the out pin.
bool rdGPIO (ExpGpioPinName PinName)
 Read the input pin.
bool setGPIOdir (ExpGpioPinName PinName, ExpGpioPinDirection PinDir)
 Set the pin direction.
void read16bitReg (uint8_t Reg16Addr, uint16_t *Reg16Data)
 Read a 16 bits register.
void write16bitReg (uint8_t Reg16Addr, uint16_t *Reg16Data)
 Write a 16 bits register.

Detailed Description

Class representing a whole stmpe1600 component (16 gpio)

Definition at line 198 of file stmpe1600_class.h.


Constructor & Destructor Documentation

STMPE1600 ( DevI2C &  i2c,
uint8_t  DevAddr = STMPE1600_DEF_DEVICE_ADDRESS 
)

Constructor.

Parameters:
[in]&i2cdevice I2C to be used for communication
[in]DevAddrthe stmpe1600 I2C device addres (deft STMPE1600_DEF_DEVICE_ADDRESS)

Definition at line 205 of file stmpe1600_class.h.


Member Function Documentation

bool clrGPIO ( ExpGpioPinName  PinName )

Clear the out pin.

Parameters:
[in]Thepin name
Returns:
0 on Success

Definition at line 244 of file stmpe1600_class.h.

bool rdGPIO ( ExpGpioPinName  PinName )

Read the input pin.

Parameters:
[in]Thepin name
Returns:
The logical pin level

Definition at line 257 of file stmpe1600_class.h.

void read16bitReg ( uint8_t  Reg16Addr,
uint16_t *  Reg16Data 
)

Read a 16 bits register.

Parameters:
[in]Theregister address
[in]Thepointer to the read data

Definition at line 287 of file stmpe1600_class.h.

bool setGPIO ( ExpGpioPinName  PinName )

Set the out pin.

Parameters:
[in]Thepin name
Returns:
0 on Success

Definition at line 231 of file stmpe1600_class.h.

bool setGPIOdir ( ExpGpioPinName  PinName,
ExpGpioPinDirection  PinDir 
)

Set the pin direction.

Parameters:
[in]Thepin name
[in]Thepin direction
Returns:
0 on success

Definition at line 273 of file stmpe1600_class.h.

void write16bitReg ( uint8_t  Reg16Addr,
uint16_t *  Reg16Data 
)

Write a 16 bits register.

Parameters:
[in]Theregister address
[in]Thepointer to the data to be written

Definition at line 297 of file stmpe1600_class.h.

void writeSYS_CTRL ( uint8_t  data )

Write the SYS_CTRL register.

Parameters:
[in]Datato be written (bit fields)

Definition at line 221 of file stmpe1600_class.h.