Datasheet
I2C Bootloader
Document Number: 001-13258 Rev. *J Page 23 of 39
BootLdrI2C_InitRamRead
Description:
The BootLdrI2C_InitRamRead routine initializes a data buffer pointer for the slave to use to retrieve
data from, and zeroes the value of a count byte for the same buffer.
C Prototype:
void BootLdrI2C_InitRamRead(BYTE * pBootLdrI2C_ReadBuf, BYTE BootLdrI2C_Read_Count);
Assembler:
mov A, Read_Count
push A
move A, >pReadBuf
push A
mov A, <pReadBuf
push A
lcall BootLdrI2C_InitRamRead
Parameters:
pReadBuf: A pointer to a RAM buffer location. Read_Count: The length of the read buffer.
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.
BootLdrI2C_InitFlashRead
Description:
The BootLdrI2C_InitFlashRead routine initializes a flash data buffer pointer for the slave to use to
retrieve data from, and zeroes the value of a count byte for the same buffer.
C Prototype:
void BootLdrI2C_InitFlashRead(const BYTE * pBootLdrI2C_flashaddr, unsigned int
BootLdrI2C_Read_CountHI);
Assembler:
mov A, >Read_Count
push A
mov A, <Read_Count
push A
move A, >pflashaddr
push A
mov A, <pflashaddr
push A
lcall BootLdrI2C_InitFlashRead
Parameters:
pflashaddr: A pointer to a Flash data buffer location. Read_Count: The length of the read buffer.