Class CircuitPythonFCT
Provides functionality for CircuitPython type FCTs
Inheritance
Implements
Inherited Members
Namespace: Elatec.FCT.Client.Hardware
Assembly: ElatecFCT.dll
Syntax
public abstract class CircuitPythonFCT : ICommandFCT
Constructors
View SourceCircuitPythonFCT(CircuitPythonREPL)
Initializes a new instance of the ElatecFCT.Hardware.CircuitPythonFCT using a CircuitPythonREPL board
Declaration
public CircuitPythonFCT(CircuitPythonREPL board)
Parameters
Type | Name | Description |
---|---|---|
CircuitPythonREPL | board |
Properties
View SourceBoard
CircuitPython compatible MCU
Declaration
public CircuitPythonREPL Board { get; set; }
Property Value
Type | Description |
---|---|
CircuitPythonREPL |
DutFwBoot
ICommandFCT: Start the elatec firmware bootloader
Declaration
public abstract Signal DutFwBoot { get; set; }
Property Value
Type | Description |
---|---|
Signal |
DutHostsense
ICommandFCT: Signal to set the DUT comm mode (USB or serial)
Declaration
public abstract Signal DutHostsense { get; set; }
Property Value
Type | Description |
---|---|
Signal |
DutMcuBoot
ICommandFCT: Start the factory bootloader
Declaration
public abstract Signal DutMcuBoot { get; set; }
Property Value
Type | Description |
---|---|
Signal |
DutPwrDown
ICommandFCT: Signal to set the DUT Vreg
Declaration
public abstract Signal DutPwrDown { get; set; }
Property Value
Type | Description |
---|---|
Signal |
DutReset
ICommandFCT: Signal to reset the DUT
Declaration
public abstract Signal DutReset { get; set; }
Property Value
Type | Description |
---|---|
Signal |
EcuID
Declaration
public string EcuID { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ExpectedFirmware
ICommandFCT: Get the firmware version of an FCT
Declaration
public string ExpectedFirmware { get; }
Property Value
Type | Description |
---|---|
System.String |
FctID
ICommandFCT: Get or set the ID of an FCT
Declaration
public string FctID { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Firmware
ICommandFCT: Get the firmware version of an FCT
Declaration
public string Firmware { get; }
Property Value
Type | Description |
---|---|
System.String |
HasCircleMarker
ICommandFCT: Show if FCT has an circle marker
Declaration
public abstract bool HasCircleMarker { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasInterlok
ICommandFCT: Show if FCT has an interlok
Declaration
public abstract bool HasInterlok { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ImageNameFirmware
ICommandFCT: Get the imagename of the fimrware
Declaration
public string ImageNameFirmware { get; }
Property Value
Type | Description |
---|---|
System.String |
IsDUTInserted
ICommandFCT: Check if interlook is closed
Declaration
public abstract bool IsDUTInserted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsInit
ICommandFCT: Check if the init flag is set
Declaration
public bool IsInit { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Memory
Declaration
public MemoryREPL Memory { get; set; }
Property Value
Type | Description |
---|---|
MemoryREPL |
SerialPort
ICommandFCT: Get or set the serial port of the FCT
Declaration
public SerialPort SerialPort { get; set; }
Property Value
Type | Description |
---|---|
System.IO.Ports.SerialPort |
Signals
List of FCTs signals
Declaration
public List<Signal> Signals { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Signal> |
USBActive
ICommandFCT: Signal for open the DUT USB port
Declaration
public abstract Signal USBActive { get; set; }
Property Value
Type | Description |
---|---|
Signal |
Methods
View SourceAddCircleMark()
Add circle mark to DUT which shows that it is ok
Declaration
public abstract void AddCircleMark()
Blink()
ICommandFCT: Show some blinky LEDs
Declaration
public abstract void Blink()
ConnectDUT()
ICommandFCT: Connect DUT
Declaration
public abstract void ConnectDUT()
DisconnectDUT()
ICommandFCT: Disconnect power and IO from DUT
Declaration
public abstract void DisconnectDUT()
EnterTransparent(Int32, Parity)
Declaration
public void EnterTransparent(int baudRate, Parity parity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | baudRate | |
System.IO.Ports.Parity | parity |
ExitTransparent()
Declaration
public void ExitTransparent()
GetColor(Int32, Int32, Int32)
ICommandFCT: Get RGB color values
Declaration
public abstract int GetColor(int channel, int waveLenght, int sensitivity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | channel | |
System.Int32 | waveLenght | |
System.Int32 | sensitivity |
Returns
Type | Description |
---|---|
System.Int32 |
GetCurrent_mA(Int32, ReadingMode)
ICommandFCT: Read current
Declaration
public abstract double GetCurrent_mA(int channel, ReadingMode mode)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | channel | |
ReadingMode | mode |
Returns
Type | Description |
---|---|
System.Double |
GetField_dbm(Byte[])
ICommandFCT: Get em field in dbm
Declaration
public virtual double GetField_dbm(byte[] macAddress)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | macAddress |
Returns
Type | Description |
---|---|
System.Double |
GetSuccessCounter()
ICommandFCT: Get FCT success counter
Declaration
public uint GetSuccessCounter()
Returns
Type | Description |
---|---|
System.UInt32 |
GetTrialCounter()
ICommandFCT: Get FCT trial counter
Declaration
public uint GetTrialCounter()
Returns
Type | Description |
---|---|
System.UInt32 |
GetVoltage_V(Int32, ReadingMode)
ICommandFCT: Read voltage
Declaration
public abstract double GetVoltage_V(int channel, ReadingMode mode)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | channel | |
ReadingMode | mode |
Returns
Type | Description |
---|---|
System.Double |
IncrementSuccessCounter()
ICommandFCT: Increment FCT success counter
Declaration
public uint IncrementSuccessCounter()
Returns
Type | Description |
---|---|
System.UInt32 |
IncrementTrialCounter()
ICommandFCT: Increment FCT trial counter
Declaration
public uint IncrementTrialCounter()
Returns
Type | Description |
---|---|
System.UInt32 |
Init()
ICommandFCT: Init the FCT
Declaration
public abstract void Init()
ResetCounter()
ICommandFCT: Reset counter
Declaration
public void ResetCounter()
ResetDUT()
ICommandFCT: Reset DUT
Declaration
public abstract void ResetDUT()
RestartDUT()
ICommandFCT: Restart DUT
Declaration
public abstract void RestartDUT()
SetTransparentRS485(Boolean)
Declaration
public void SetTransparentRS485(bool isRS485)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isRS485 |
ShowBusy()
ICommandFCT: Show that the FCT is working
Declaration
public abstract void ShowBusy()
ShowError()
ICommandFCT: Show that production of a DUT was not ok
Declaration
public abstract void ShowError()
ShowOK()
ICommandFCT: Show that production of a DUT was ok
Declaration
public abstract void ShowOK()