8#define IOEXPANDER_CMD_READ_0 0x00
9#define IOEXPANDER_CMD_READ_1 0x01
10#define IOEXPANDER_CMD_WRITE_0 0x02
11#define IOEXPANDER_CMD_WRITE_1 0x03
12#define IOEXPANDER_CMD_CONFIGURE_0 0x06
13#define IOEXPANDER_CMD_CONFIGURE_1 0x07
Definition: io_expander.h:24
~IOExpander()
Destructor for IOExpander class.
int writeOutputPort(int address, uint8_t port_number, char data)
Function writes state to given output port.
int readInputPort(int address, uint8_t port_number, char *portState)
Function reads state of given input port.
IOExpander(PinName sda_pin, PinName scl_pin)
Creates instance of IOExpander class.
int configurePort(int address, uint8_t port_number, char config)
Function configures IOs direction of port to output or input state. Each IO of given port can be conf...
The file contains constants of vitro-shard-sdk for user usage.
The file defines debug macros.
The namespace contains all of components of vitro-shard-sdk and components based on the sdk....
Definition: can_layer.h:9