HWA
Bare metal programming with style
Class _usia_spimaster_swclk: software clocked SPI master over USI

A class _usia_spimaster_swclk object is an SPI master clocked by software implemented on top of the USI interface.

Clocking is handle by HWA when hw(write,...) is executed.

Note
This needs to be rewritten.

Actions


configure:

#define SPI spimaster0_swclk
hw( configure, SPI );


read:

#define SPI spimaster0_swclk
uint8_t byte = hw( read, SPI );


write: send one byte.

hw( write, spimaster0_swclk, 'A' );
hw
#define hw(...)
hw( action, object [,...] ) executes an action immediately on an object.
Definition: hwa_macros.h:523