Skip to main content

Class SimulatedT322ai

A simulated version of the driver for Temco Controls T322ai analog input module.

Assembly: Temco.T3xxx.dll​
View Source​
Declaration
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​
Declaration
public T322ai.PinDefinitions Pins { get; }

Methods​

CreateCurrentInputPort(IPin)​

Creates a new current input port instance associated with the specified pin.

View Source​
Declaration
public Task<ICurrentInputPort> CreateCurrentInputPort(IPin pin)
Returns​

System.Threading.Tasks.Task<Meadow.Hardware.ICurrentInputPort>: A new ICurrentInputPort instance configured for the specified pin.

Parameters​
TypeNameDescription
Meadow.Hardware.IPinpinThe 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​
Declaration
public Task<IVoltageInputPort> CreateVoltageInputPort(IPin pin)
Returns​

System.Threading.Tasks.Task<Meadow.Hardware.IVoltageInputPort>: A new IVoltageInputPort instance configured for the specified pin.

Parameters​
TypeNameDescription
Meadow.Hardware.IPinpinThe physical pin to associate with the voltage input port.

ReadSerialNumber()​

Reads the serial number of the T3 module.

View Source​
Declaration
public Task<int> ReadSerialNumber()
Returns​

System.Threading.Tasks.Task<System.Int32>

ReadFirmwareVersion()​

Reads the firmware version of the T3 module.

View Source​
Declaration
public Task<float> ReadFirmwareVersion()
Returns​

System.Threading.Tasks.Task<System.Single>

ReadModel()​

Reads the model identifier of the T3 module.

View Source​
Declaration
public Task<T3ModuleModel> ReadModel()
Returns​

System.Threading.Tasks.Task<Meadow.Foundation.IOExpanders.T3ModuleModel>

ReadHardwareRevision()​

Reads the hardware revision of the T3 module.

View Source​
Declaration
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​
Declaration
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​
Declaration
public Task WriteBaudRate(int bitrate)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.Int32bitrate

WriteModbusAddress(byte)​

Sets the Modbus node address of the sensor

View Source​
Declaration
public Task WriteModbusAddress(byte newAddress)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.BytenewAddress

CreateDigitalInputPort(IPin, ResistorMode)​

Creates an IDigitalInputPort on the specified pin.

View Source​
Declaration
public IDigitalInputPort CreateDigitalInputPort(IPin pin, ResistorMode resistorMode)
Returns​

Meadow.Hardware.IDigitalInputPort

Parameters​
TypeNameDescription
Meadow.Hardware.IPinpinThe pin on which to create the port.
Meadow.Hardware.ResistorModeresistorModeThe 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​
Declaration
public ICounter CreateCounter(IPin pin, InterruptMode edge)
Returns​

Meadow.Hardware.ICounter: The created counter instance.

Parameters​
TypeNameDescription
Meadow.Hardware.IPinpinThe pin to create the counter on.
Meadow.Hardware.InterruptModeedgeThe interrupt edge mode for the counter.

Implements​