示例#1
0
void toggle_action_state(action *a)
{
    if(a != NULL)
    {
        if(a->enabled)
            disable_action(a);
        else
            enable_action(a);
    }
}
示例#2
0
byte enable_wait_falling(byte ch)
	{
	// Wait for a falling EDGE on the speciied 'pin' just before every Capture.
	return enable_action(AWAITFALL, ch);
	}
示例#3
0
byte enable_set_high(byte ch)
	{
	// Sets the speciied 'pin' HIGH, just before every Capture.
	return enable_action(ASET, ch);
	}
示例#4
0
byte enable_wait_low(byte ch)
	{
	// Wait for a LOW on the speciied 'pin' just before every Capture.
	return enable_action(AWAITLO, ch);
	}
示例#5
0
byte enable_wait_rising(byte ch)
	{
	// Wait for a rising EDGE on the speciied 'pin' just before every Capture.
	return enable_action(AWAITRISE, ch);
	}
示例#6
0
byte enable_wait_high(byte ch)
	{
	// Wait for a HIGH on the speciied 'pin' just before every Capture.
	return enable_action(AWAITHI, ch);
	}
示例#7
0
byte set_trig_source(byte ch)
	{
	// Analog Trigger of the desired channel
	return enable_action(AANATRIG, ch);
	}
示例#8
0
byte enable_pulse_low(byte ch)
	{
	// Generate a LOW TRUE Pulse on the speciied 'pin', just before every Capture.
	return enable_action(APULSELT, ch);
	}
示例#9
0
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);
	}
示例#10
0
byte enable_set_low(byte ch)
	{
	// Sets the speciied 'pin' LOW, just before every Capture.
	return enable_action(ACLR, ch);
	}