IoDrvGPIOBBB Library Documentation ¶ Company : CODESYS Title : IoDrvGPIOBBB Version : 4.10.0.0 Categories : Intern|IoDrivers Namespace : IoDrvGPIOBBB Author : CODESYS Development GmbH Placeholder : IoDrvGPIOBBB Description [ 1 ] ¶ GPIO I/O driver for BeagleBone Black Contents: ¶ Configuration (GVL) IoDrvGPIOBBB (FunctionBlock) ConfigurePinAI (Method) ConfigurePinDI (Method) ConfigurePinDO (Method) IsChannelEnabled (Method) ReadPin (Method) IoDrvGPIOBase (FunctionBlock) IBase ICmpIoDrv ICmpIoDrvConfig ICmpIoDrvParameter PinConfiguration MemRegion (Struct) PinFunction (Enum) Indices and tables ¶ [ 1 ] Based on IoDrvGPIOBBB.library, last modified 25.10.2023, 14:02:26. LibDoc 4.4.0.0-b.37 The content file IoDrvGPIOBBB.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 25.10.2023, 14:02:28.
spi.BeforeWriteOutputs (METH) ¶ METHOD BeforeWriteOutputs : INT This method can be overloaded by extending FBs. It is used to write the outputs to the device at the end of the cycle. Always including a call of the base implementation with super^.BeforeWriteOutputs() In the base implementation, the body of the FB is called. InOut: Scope Name Type Return BeforeWriteOutputs INT
spi.transfer (METH) ¶ METHOD transfer : BOOL This method is used to transfer data via SPI InOut: Scope Name Type Initial Comment Return transfer BOOL Input pabyTxBuffer POINTER TO ARRAY [0..255] OF BYTE pointer to send buffer pabyRxBuffer POINTER TO ARRAY [0..255] OF BYTE pointer to receive buffer udiLen UDINT 3 length to transfer uiDelayus UINT 5 delay in µs
spi.transferExt (METH) ¶ METHOD transferExt : BOOL This method is used to transfer data via SPI. In contrast to the method ‘transfer’ one can specify the communication clock. InOut: Scope Name Type Initial Comment Return transferExt BOOL Input pabyTxBuffer POINTER TO ARRAY [0..255] OF BYTE pointer to send buffer pabyRxBuffer POINTER TO ARRAY [0..255] OF BYTE pointer to receive buffer udiLen UDINT 3 length to transfer uiDelayus UINT 5 delay in µs udiSpeedHz UDINT 0 send clock in Hz; if 0, _diMaxSpeed is used
spi.Operational (PROP) ¶ PROPERTY Operational : BOOL This property has to return TRUE , when the device is configured and running
spiMaster.transferExt (METH) ¶ METHOD transferExt : BOOL This method is used to transfer data via SPI InOut: Scope Name Type Initial Comment Return transferExt BOOL Input pabyTxBuffer POINTER TO ARRAY [0..255] OF BYTE pointer to send buffer pabyRxBuffer POINTER TO ARRAY [0..255] OF BYTE pointer to receive buffer udiLen UDINT 3 length to transfer uiDelayus UINT 5 delay in µs udiSpeedHz UDINT 0 send clock in Hz; if 0, _diMaxSpeed is used
i2c.AfterReadInputs (METH) ¶ METHOD AfterReadInputs : INT This method can be overloaded by extending FBs. It is used to read in the inputs of the device in the beginning of the cycle. Always including a call of the base implementation with super^.AfterReadInputs() In the base implementation, the body of the FB is called. InOut: Scope Name Type Return AfterReadInputs INT
i2c.BeforeWriteOutputs (METH) ¶ METHOD BeforeWriteOutputs : INT This method can be overloaded by extending FBs. It is used to write the outputs to the device at the end of the cycle. Always including a call of the base implementation with super^.BeforeWriteOutputs() In the base implementation, the body of the FB is called. InOut: Scope Name Type Return BeforeWriteOutputs INT
i2c.read (METH) ¶ METHOD read : DINT This method is used to directly read nBufferLen bytes from the CharDevice. InOut: Scope Name Type Comment Return read DINT Number of bytes that have actually been read Input pbyBuffer POINTER TO BYTE pointer to area, where the bytes are copied nBufferLen UDINT number of bytes to read
i2c.read8 (METH) ¶ METHOD read8 : USINT This method is used to read the data byte of one register The function therefore first writes the register number and then reads one byte. InOut: Scope Name Type Comment Return read8 USINT data content Input usiRegister USINT register to read