Datasheet

I2C Bootloader
Document Number: 001-13258 Rev. *J Page 22 of 39
BootLdrI2C_DisableSlave
Description:
Disables the I
2
C Slave function by clearing the Enable Slave bit in the I2C_CFG register.
C Prototype:
void BootLdrI2C_DisableSlave(void);
Assembler:
lcall BootLdrI2C_DisableSlave
Parameters:
None
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.
The following API are available only for FullAPISupport:
BootLdrI2C_InitWrite
Description:
The BootLdrI2C_InitWrite routine initializes a data buffer pointer for the slave to use to deposit data,
and zeroes the value of a count byte for the same buffer.
C Prototype:
void BootLdrI2C_InitWrite(BYTE * pBootLdrI2C_WriteBuf, BYTE BootLdrI2C_Write_Count);
Assembler:
mov A, Write_Count
push A
move A, >pWriteBuf
push A
mov A, <pWriteBuf
push A
lcall BootLdrI2C_InitWrite
Parameters:
pWriteBuf: A pointer to a RAM buffer location. Write_Count: The length of the write buffer.
Return Value:
None
Side Effects:
The A and X registers may be modified by this or future implementations of this function. The same
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.