OneWire.SetMasterInstance (METH) ¶ METHOD SetMasterInstance : BOOL with this method the internal pointer to the master device can be set. note: this method can only be applied when the slave device is not part of the device tree (where all this action is done automatically), but manually instanciated. Then, it must be linked to the master instance with this function. InOut: Scope Name Type Return SetMasterInstance BOOL Input pMaster POINTER TO OneWireMaster
connector ¶ AfterReadInputs (Method) BeforeWriteOutputs (Method) Initialize (Method)
status ¶ Operational (Property)
OneWireMaster (FB) ¶ FUNCTION_BLOCK OneWireMaster This function block represents a 1-wire master. Its outputs are set during initialization and give information about the present devices. InOut: Scope Name Type Comment Output uiMaxDevices UINT maximum number of connected devices pasScannedDevices POINTER TO ARRAY [0..19] OF OneWireUniqueID list of scanned devices uiScannedDevices UINT number of scanned devices Properties: Operational Path Methods: AddDevice GetNumberOfSlaves Scan Structure: AddDevice (Method) GetNumberOfSlaves (Method) Operational (Property) Path (Property) Scan (Method)
OneWireMaster.AddDevice (METH) ¶ METHOD AddDevice : BOOL This method adds a slave device to the master’s update list InOut: Scope Name Type Return AddDevice BOOL Input sSlave STRING
OneWireMaster.GetNumberOfSlaves (METH) ¶ METHOD GetNumberOfSlaves : UINT This method returns the number of present devices during the last scan. InOut: Scope Name Type Return GetNumberOfSlaves UINT
OneWireMaster.Operational (PROP) ¶ PROPERTY Operational : BOOL This property has to return TRUE, when the master device is running
SenseHat.GyroZCalibrated (PROP) ¶ PROPERTY GyroZCalibrated : LREAL
SenseHat.GyroZIntegral (PROP) ¶ PROPERTY GyroZIntegral : LREAL
SenseHat.LowLight (METH) ¶ METHOD LowLight