Antilatency.HardwareExtensionInterface.ICotask

Antilatency.HardwareExtensionInterface.ICotask

interface ICotask : DeviceNetwork.ICotask {
IAnalogPin createAnalogPin(​Interop.Pins pin, uint refreshIntervalMs);
IPulseCounterPin createPulseCounterPin(​Interop.Pins pin, uint refreshIntervalMs);
IPwmPin createPwmPin(​Interop.Pins pin, uint frequency, float initialDuty);
void run(​);
}

Methods

Create InputPin for reading state of pin. By default, pull mode is pull up.
Create OutputPin for controlling state of pin.
Create AnalogPin for reading voltage on pin.
Create PulseCounter for counting rising edges on pin.
Create PwmPin for controlling state of pwm pin.
Apply config and start processing of pin states. Switch task in Run mode(configuring not possible).