gusimplewhiteboard
wb_io_pins Struct Referenceabstract

Simulated I/O pins. More...

#include <wb_io_pins.h>

Inheritance diagram for wb_io_pins:
Collaboration diagram for wb_io_pins:

Public Member Functions

 ARRAY_PROPERTY (uint8_t, pins,(sizeof(gu_simple_message))) wb_io_pins(int value=0)
 bit vector of I/O pin values More...
 

Detailed Description

Simulated I/O pins.

This is implemented as a bit vector with one bit per pin and controlled by the following macros:

IO_PIN_CLR(s, n) set pin n to zero (false, clear) IO_PIN_SET(s, n) set pin n to one (true, set) IO_PIN_GET(s, n) check if pin n is set

Definition at line 80 of file wb_io_pins.h.

Member Function Documentation

◆ ARRAY_PROPERTY()

wb_io_pins::ARRAY_PROPERTY ( uint8_t  ,
pins  ,
(sizeof(gu_simple_message))   
)
inlinepure virtual

bit vector of I/O pin values

convenience constructor: clears all I/O pins

Definition at line 83 of file wb_io_pins.h.


The documentation for this struct was generated from the following file: