void toggle_action_state(action *a) { if(a != NULL) { if(a->enabled) disable_action(a); else enable_action(a); } }
byte enable_wait_falling(byte ch) { // Wait for a falling EDGE on the speciied 'pin' just before every Capture. return enable_action(AWAITFALL, ch); }
byte enable_set_high(byte ch) { // Sets the speciied 'pin' HIGH, just before every Capture. return enable_action(ASET, ch); }
byte enable_wait_low(byte ch) { // Wait for a LOW on the speciied 'pin' just before every Capture. return enable_action(AWAITLO, ch); }
byte enable_wait_rising(byte ch) { // Wait for a rising EDGE on the speciied 'pin' just before every Capture. return enable_action(AWAITRISE, ch); }
byte enable_wait_high(byte ch) { // Wait for a HIGH on the speciied 'pin' just before every Capture. return enable_action(AWAITHI, ch); }
byte set_trig_source(byte ch) { // Analog Trigger of the desired channel return enable_action(AANATRIG, ch); }
byte enable_pulse_low(byte ch) { // Generate a LOW TRUE Pulse on the speciied 'pin', just before every Capture. return enable_action(APULSELT, ch); }
byte enable_pulse_high(byte ch) { // Generate a HIGH TRUE Pulse on the speciied 'pin', just before every Capture. // width is specified by the set_pulsewidth() function. return enable_action(APULSEHT, ch); }
byte enable_set_low(byte ch) { // Sets the speciied 'pin' LOW, just before every Capture. return enable_action(ACLR, ch); }