#include <otPCA9505.h>
Public Types | |
typedef otPCA9505::PortIndex | PortIndex |
enum | PortIndex { PORT_A, PORT_B, PORT_C, PORT_D, PORT_E } |
Public Member Functions | |
otPCA9505 () | |
void | init (U8 addressIndex=0) |
void | setPortDir (U8 a, U8 b, U8 c, U8 d, U8 e) |
void | setPortDir (PortIndex pi, U8 dir) |
void | setPortDir (PortIndex pi, U8 bit, bool out) |
void | setPortPolarity (U8 a, U8 b, U8 c, U8 d, U8 e) |
void | setPortPolarity (PortIndex pi, U8 inv) |
void | setPortPolarity (PortIndex pi, U8 bit, bool invert) |
void | setPortInterrupt (U8 a, U8 b, U8 c, U8 d, U8 e) |
void | setPortInterrupt (PortIndex pi, U8 ena) |
void | setPortInterrupt (PortIndex pi, U8 bit, bool enable) |
void | writePort (U8 a, U8 b, U8 c, U8 d, U8 e) |
void | writePort (PortIndex pi, U8 val) |
void | setBit (PortIndex pi, U8 bit, bool set) |
U8 | readPort (PortIndex pi) |
void | readPort (U8 *port) |
bool | testBit (PortIndex pi, U8 bit) |
|
|
|
|
|
Create the class. |
|
Init the port and set the base address
|
|
Read all ports
|
|
Read a port contents
|
|
Set a bit of a specific port
|
|
Set direction of a specific port and related bit, set TRUE for output or FALSE for input
|
|
Set direction of a specific port, , set each bit to 1 for output or 0 for input
|
|
Set direction of each of each port, set each bit to 1 for output or 0 for input
|
|
Set the interrupt mask of a specific port and related bit, set TRUE for interrupt enable or FALSE for mask
|
|
Set the interrupt mask of a specific port, set each bit to 1 for interrupt enable or 0 for mask
|
|
Set the interrupt mask of each port, set each bit to 1 for interrupt enable or 0 for mask
|
|
Set polarity of a specific port and related bit, set TRUE for invert or FALSE for not invert
|
|
Set polarity of a specific port, set each bit to 1 for invert or 0 for not invert
|
|
Set polarity of each of each port, set each bit to 1 for invert or 0 for not invert
|
|
Test a bit of a specific port
|
|
Write a specific port
|
|
Write on all ports
|