IoDrvGPIOBase.IoDrvGetConnector (METH) ¶ METHOD IoDrvGetConnector : POINTER TO IoConfigConnector InOut: Scope Name Type Return IoDrvGetConnector POINTER TO IoConfigConnector Input pResult POINTER TO RTS_IEC_RESULT
ICmpIoDrvParameter ¶ IoDrvReadParameter (Method) IoDrvWriteParameter (Method)
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
i2c.readregister (METH) ¶ METHOD readregister : DINT This method is used to read a number of data bytes starting from a certain register The function therefore first writes the register number and then reads the defined number of bytes. InOut: Scope Name Type Comment Return ReadRegister DINT Number of bytes that have been actually read Input usiRegister USINT register number, where to start reading pbyBuffer POINTER TO BYTE pointer to buffer where to store the read data nBufferLen UDINT number of bytes to read
i2c.write (METH) ¶ METHOD write : DINT This method is used to directly write nBufferLen bytes to the CharDevice. InOut: Scope Name Type Comment Return write DINT Number of bytes that have actually been written Input pbyBuffer POINTER TO BYTE Pointer to the buffer that contains the data nBufferLen UDINT number of bytes to write
i2c.write8 (METH) ¶ METHOD write8 : BOOL This method is used to write the data byte of one register InOut: Scope Name Type Comment Return write8 BOOL TRUE if successful Input usiRegister USINT register to write usiValue USINT value
i2c.writeBits (METH) ¶ METHOD writeBits : BOOL This method is used to modify single bits of one register. InOut: Scope Name Type Comment Return writeBits BOOL TRUE if successful Input usiRegister USINT register usiFirstBit USINT highest value bit to write (0..7) usiLength USINT number of bits to write (1..usiFirstBit+1) usiValue USINT value of the bits to set (0..2^usiLength-1)
i2c.Operational (PROP) ¶ PROPERTY Operational : BOOL This property has to return TRUE , when the device is configured and running