FrequencySensor Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The frequency extension allows detecting the frequency of a signal at a given pin. This extension is supported on gpio pins that support interrupts.
public class FrequencySensor : Iot.Device.Arduino.ExtendedCommandHandler
type FrequencySensor = class
inherit ExtendedCommandHandler
Public Class FrequencySensor
Inherits ExtendedCommandHandler
- Inheritance
Frequency |
Creates a new instance of this class. This supports pins that have the "Frequency" mode enabled. |
Board |
The reference to the arduino board (Inherited from ExtendedCommandHandler) |
Handles |
The pin mode this handler supports. (Inherited from ExtendedCommandHandler) |
Is |
Returns true if this command handler is registered. This might need to be checked in Dispose, to make sure an uninitialized component doesn't attempt to send a command. (Inherited from ExtendedCommandHandler) |
Logger |
The class-specific logger instance (Inherited from ExtendedCommandHandler) |
Disable |
Disables automatic updating of the frequency counter for the given pin |
Dispose() | (Inherited from ExtendedCommandHandler) |
Dispose(Boolean) |
Disposes this instance |
Enable |
Enable frequency reporting on the given pin. |
Get |
Returns the last measured frequency. Returns 0 if no frequency measurement is active. |
Has |
Callback function that returns whether the given reply indicates an error (Inherited from ExtendedCommandHandler) |
Is |
This method is called to check whether the reply is a valid ACK/NOACK for the given command sequence. Can be used to avoid accepting something as command reply that is completely unrelated (such as an asynchronous callback). In different words, this should return false if the given reply is not something that is an answer to a synchronous command. (Inherited from ExtendedCommandHandler) |
On |
This method is called when a connection to the hardware is established. |
On |
Called by the infrastructure when the parser reports an error or information message. The default implementation does nothing. (Inherited from ExtendedCommandHandler) |
On |
This is called when a sysex command is received from the board. This can include the reply to a command sent by a SendCommandAndWait(FirmataCommandSequence) before, in which case the reply should be ignored, as it is returned as result of the call itself. Therefore it is advised to use this function only to listen for data sent by the device automatically (e.g event messages or recurring status reports) |
Send |
Sends a command to the device, not expecting an answer. (Inherited from ExtendedCommandHandler) |
Send |
Send a command to the device, expecting a reply. (Inherited from ExtendedCommandHandler) |
Send |
Send a command to the device, expecting a reply. (Inherited from ExtendedCommandHandler) |
Send |
Send a command to the device, expecting a reply. This uses a default timeout. (Inherited from ExtendedCommandHandler) |
Send |
Send a command to the device, expecting a reply. (Inherited from ExtendedCommandHandler) |
Product | Versions |
---|---|
.NET IoT Libraries | 2.0.0, 2.1.0, 2.2.0 |