Datasheet

I2C Bootloader
Document Number: 001-13258 Rev. *J Page 24 of 39
Return Value:
None
Side Effects:
The A and X registers may be modified by this or future implementations of this function. This is true
for all RAM page pointer registers in the Large Memory Model (CY8C29xxx). When necessary, it is
the calling function's responsibility to preserve the values across calls to fastcall16 functions.
Read status bits are cleared.
BootLdrI2C_bReadI2CStatus
Description:
Returns the value in the I2CStatus variable.
C Prototype:
BYTE BootLdrI2C_bReadI2CStatus(void);
Assembler:
lcall BootLdrI2C_bReadI2CStatus ; Accumulator contains the status on return
Parameters:
None
Return Value:
bI2CStatus - status data
Side Effects:
The A and X registers may be modified by this or future implementations of this function. This is true
for all RAM page pointer registers in the Large Memory Model (CY8C29xxx). When necessary, it is
the calling function's responsibility to preserve the values across calls to fastcall16 functions.
Constant Value Description
I2CHW_RD_NOERR 01h Data is read by the master, normal ISR exit.
I2CHW_RD_ OVERFLOW 02h More data bytes were read by the master than were available.
I2CHW_RD_ COMPLETE 04h A read is initiated and is complete.
I2CHW_READFLASH 08h The next read is from a Flash location.
I2CHW_WR_NOERR 10h Data is successfully written by the master.
I2CHW_WR_OVERFLOW 20h The master has written too many bytes for the write buffer.
I2CHW_WR_COMPLETE 40h A master write is completed by a new address or stop.
I2CHW_ISR_ACTIVE 80h
The I
2
C ISR has not exited and is active.