Class SimulatedT322ai
A simulated version of the driver for Temco Controls T322ai analog input module.
Assembly: Temco.T3xxx.dll
View Source
public class SimulatedT322ai : IT322ai, IT3Module, ICurrentInputController, IVoltageInputController, IDigitalInputController, ICounterController, IPinController
Implements:
Meadow.Foundation.IOExpanders.IT322ai, Meadow.Foundation.IOExpanders.IT3Module, Meadow.Hardware.ICurrentInputController, Meadow.Hardware.IVoltageInputController, Meadow.Hardware.IDigitalInputController, Meadow.Hardware.ICounterController, Meadow.Hardware.IPinController
Properties
Pins
Gets the pin definitions for this T322ai module, providing access to all 22 analog input pins.
View Source
public T322ai.PinDefinitions Pins { get; }
Methods
CreateCurrentInputPort(IPin)
Creates a new current input port instance associated with the specified pin.
View Source
public Task<ICurrentInputPort> CreateCurrentInputPort(IPin pin)
Returns
System.Threading.Tasks.Task<Meadow.Hardware.ICurrentInputPort>: A new ICurrentInputPort instance configured for the specified pin.
Parameters
| Type | Name | Description |
|---|---|---|
Meadow.Hardware.IPin | pin | The physical pin to associate with the current input port. |
CreateVoltageInputPort(IPin)
Creates a new voltage input port instance associated with the specified pin.
View Source
public Task<IVoltageInputPort> CreateVoltageInputPort(IPin pin)
Returns
System.Threading.Tasks.Task<Meadow.Hardware.IVoltageInputPort>: A new IVoltageInputPort instance configured for the specified pin.
Parameters
| Type | Name | Description |
|---|---|---|
Meadow.Hardware.IPin | pin | The physical pin to associate with the voltage input port. |
ReadSerialNumber()
Reads the serial number of the T3 module.
View Source
public Task<int> ReadSerialNumber()
Returns
System.Threading.Tasks.Task<System.Int32>
ReadFirmwareVersion()
Reads the firmware version of the T3 module.
View Source
public Task<float> ReadFirmwareVersion()
Returns
System.Threading.Tasks.Task<System.Single>
ReadModel()
Reads the model identifier of the T3 module.
View Source
public Task<T3ModuleModel> ReadModel()
Returns
System.Threading.Tasks.Task<Meadow.Foundation.IOExpanders.T3ModuleModel>
ReadHardwareRevision()
Reads the hardware revision of the T3 module.
View Source
public Task<byte> ReadHardwareRevision()
Returns
System.Threading.Tasks.Task<System.Byte>
ReadBaudRate()
Gets the Modbus communication bitrate the sensor is configured to use
View Source
public Task<int> ReadBaudRate()
Returns
System.Threading.Tasks.Task<System.Int32>: A task containing the bitrate in bits per second
WriteBaudRate(int)
Sets the Modbus communication bitrate the sensor is configured to use
View Source
public Task WriteBaudRate(int bitrate)
Returns
System.Threading.Tasks.Task
Parameters
| Type | Name |
|---|---|
System.Int32 | bitrate |
WriteModbusAddress(byte)
Sets the Modbus node address of the sensor
View Source
public Task WriteModbusAddress(byte newAddress)
Returns
System.Threading.Tasks.Task
Parameters
| Type | Name |
|---|---|
System.Byte | newAddress |
CreateDigitalInputPort(IPin, ResistorMode)
Creates an IDigitalInputPort on the specified pin.
View Source
public IDigitalInputPort CreateDigitalInputPort(IPin pin, ResistorMode resistorMode)
Returns
Meadow.Hardware.IDigitalInputPort
Parameters
| Type | Name | Description |
|---|---|---|
Meadow.Hardware.IPin | pin | The pin on which to create the port. |
Meadow.Hardware.ResistorMode | resistorMode | The ResistorMode specifying whether an |
external pull-up/pull-down resistor is used, or an internal pull-up/pull-down
resistor should be configured for default state. |
CreateCounter(IPin, InterruptMode)
Creates an ICounter instance on the specified pin with the specified interrupt edge mode.
View Source
public ICounter CreateCounter(IPin pin, InterruptMode edge)
Returns
Meadow.Hardware.ICounter: The created counter instance.
Parameters
| Type | Name | Description |
|---|---|---|
Meadow.Hardware.IPin | pin | The pin to create the counter on. |
Meadow.Hardware.InterruptMode | edge | The interrupt edge mode for the counter. |
Implements
- Meadow.Foundation.IOExpanders.IT322ai
- Meadow.Foundation.IOExpanders.IT3Module
Meadow.Hardware.ICurrentInputControllerMeadow.Hardware.IVoltageInputControllerMeadow.Hardware.IDigitalInputControllerMeadow.Hardware.ICounterControllerMeadow.Hardware.IPinController