HWA
Bare metal programming with style
PCF8574 I/O
External hardware
»
PCF8574 8-bit I/O expander for I²C bus
Interface
get the state of one single pin:
hw
( read, (PCF,2) );
// Get bit #2
set the state of one single pin:
hw
( write, (PCF,2), 0 );
// Clear bit #2
set the state of multiple pins:
hw
( write, (PCF,4,2), 12 );
// Set bits #5 and #4, clear bits #3 and #2
hw
#define hw(...)
hw( action, object [,...] ) executes an action immediately on an object.
Definition:
hwa_macros.h:523
Generated for HWA by
1.8.6