76 int16_t
begin(uint8_t
pin,
bool initialState = 0,
bool idleState = 0,
bool unitsMs = 0, uint16_t QueueIndex = 0xFFFF)
89 int16_t
queuePulses(uint16_t firstPulse, uint16_t secondPulse = 0)
101 int16_t result =
_sw.sendPacket(tx, rx);
#define SW_LE16(_a)
Convert a uint16_t to two bytes in little endian format for array initialization.
@ CONFIGURE_PIN_MODE1
(201)
@ PIN_MODE_QUEUED_PULSE_OUTPUT
(34)
Class for a Serial Wombat chip. Each Serial Wombat chip on a project should have its own instance.
SerialWombatPin(SerialWombatChip &serialWombatChip)
Instantiates a Serial Wombat Pin.
int16_t initPacketNoResponse(uint8_t packetNumber, uint8_t param0=0x55, uint8_t param1=0x55, uint8_t param2=0x55, uint8_t param3=0x55, uint8_t param4=0x55)
uint8_t pin()
Returns the current SW pin number. Used primarily for virtual calls by derived classes.
SerialWombatQueuedPulseOutput(SerialWombatChip &sw)
Class constructor for SerialWombatQueuedPulseOutput pin mode.
int16_t queuePulses(uint16_t firstPulse, uint16_t secondPulse=0)
Add a pulse or two pulses to the queue /.
int16_t pause(bool paused)
Pause or unpause the generation of new pulses /.
int16_t begin(uint8_t pin, bool initialState=0, bool idleState=0, bool unitsMs=0, uint16_t QueueIndex=0xFFFF)
Initialize a queued pulse output mode /.