readBit (FUN) ¶ FUNCTION readBit : DINT InOut: Scope Name Type Comment Return readBit DINT 0: Success, else -1 Input udiGpioNumber UDINT Number of GPIO pin pbValue POINTER TO BOOL Pointer to value read from GPIO pin
unexport (FUN) ¶ FUNCTION unexport : DINT Unexport GPIO pin InOut: Scope Name Type Comment Return unexport DINT 0: Success, else -1 Input udiGpioNumber UDINT Number of GPIO pin
writeBit (FUN) ¶ FUNCTION writeBit : DINT InOut: Scope Name Type Comment Return writeBit DINT 0: Success, else -1 Input udiGpioNumber UDINT Number of GPIO pin bValue BOOL Value to write to GPIO pin
GPIOSysfs (FB) ¶ FUNCTION_BLOCK GPIOSysfs
GPIOSysfsDiag (FB) ¶ FUNCTION_BLOCK GPIOSysfsDiag EXTENDS GPIOSysfs 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 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)
GPIOSysfsDiag.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
GPIOSysfsDiag.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)
GPIOSysfsDiag.ChildNodeCount (PROP) ¶ PROPERTY ChildNodeCount : CAA.COUNT Returns the number of childs below the current node