IoDrvGpioSysfsDiag (FB) ¶ FUNCTION_BLOCK IoDrvGpioSysfsDiag EXTENDS IoDrvGpioSysfs IMPLEMENTS DED.IDevice2 This function block implements the diagnosis code for CAA Device Diagnosis. Properties: ChildNodeCount Connector Enable FirstChildNode Index IsRootNode NextSiblingNode ParentNode SiblingNodeCount Methods: GetDeviceInfo GetDeviceState IoDrvGetModuleDiagnosis , inherited from IoDrvGpioSysfs Structure: IDevice GetDeviceInfo (Method) GetDeviceState (Method) INode ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property)
IDevice ¶ GetDeviceInfo (Method) GetDeviceState (Method)
IoDrvGpioSysfsDiag.GetDeviceInfo (METH) ¶ METHOD GetDeviceInfo : DED.ERROR Returns the device information of the current node InOut: Scope Name Type Comment Return GetDeviceInfo DED.ERROR Inout deiInfo DED.DEVICE_INFO Device information struct
IoDrvGpioSysfsDiag.GetDeviceState (METH) ¶ METHOD GetDeviceState : DED.DEVICE_STATE Returns the state of the device; if device state is ERROR further information can be read by GetDeviceError InOut: Scope Name Type Comment Return GetDeviceState DED.DEVICE_STATE Output xDiagnosisInfoAvailable BOOL if true, diagnosis info can be read by calling GetDeviceDiagnosisInfo eError DED.ERROR
INode ¶ ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property)
IoDrvGpioSysfsDiag.ChildNodeCount (PROP) ¶ PROPERTY ChildNodeCount : CAA.COUNT Returns the number of childs below the current node
IoDrvGpioSysfsDiag.Connector (PROP) ¶ PROPERTY Connector : POINTER TO IoStandard.IoConfigConnector
IoDrvGpioSysfsDiag.Enable (PROP) ¶ PROPERTY Enable : BOOL This property returns if the node is enabled in the device tree. The setter can be used to change the Enabled flag. If enabling/disabling is not supported on the node the flag’s value will not change.
IoDrvGpioSysfsDiag.FirstChildNode (PROP) ¶ PROPERTY FirstChildNode : DED.INode Returns the first child node below the current one
IoDrvGpioSysfsDiag.Index (PROP) ¶ PROPERTY Index : UDINT