HWA
Bare metal programming with style
Class _ocb: 8-bit compare unit with waveform generator with complementary outputs

This class is used by:

Relatives

Interrupts

Actions



hwa( configure, ... ):

hwa( configure, (counter1,compare0),
[ update, after_top, ] // Default, no other choice
[ output
| output_h, disconnected // Default
| toggle_after_match
| clear_after_match
| set_after_match
| set_at_bottom_clear_after_match
| clear_at_bottom_set_after_match, ]
[ output_l, disconnected // Default
| clear_at_bottom_set_after_match ]
);



hw( read, ... ): get the compare value

uint8_t ocr = hw( read, (counter0,compare0) );



hw( write, ... ), hwa( write, ... ): set the compare value

hw( write, (counter0,compare0), value );
hwa( write, (counter0,compare0), value );

Registers

Registers are hold by the parent counter.

hwa
#define hwa(...)
hwa( action, object [,...] ) stores an action for an object into a HWA context.
Definition: hwa_macros.h:552
hw
#define hw(...)
hw( action, object [,...] ) executes an action immediately on an object.
Definition: hwa_macros.h:523