Microchip Technology SW006022-2N Data Sheet
MPLAB
®
XC16 C Compiler User’s Guide
DS52071B-page 134
2012 Microchip Technology Inc.
7.6.3.2
FUNCTIONS FOR WRITING
write_external
void _ _write_external(unsigned int address,
unsigned int memory_space,
void *buffer,
unsigned int len)
This function is a generic Write function and will be called if one of the next functions
are required but not defined. This function should perform the steps necessary to write
len
are required but not defined. This function should perform the steps necessary to write
len
bytes of memory from the buffer to the external memory named memory_space
starting at address address.
write_external8
void _ _write_external8(unsigned int address,
unsigned int memory_space,
unsigned char data)
Write 8 bits of data to external memory space memory_space starting from address
address
address
. The compiler would like to call this function if trying to write an 8-bit sized
object.
write_external16
void _ _write_external16(unsigned int address,
unsigned int memory_space,
unsigned int data)
Write 16 bits of data to external memory space memory_space starting from address
address
address
. The compiler would like to call this function if trying to write an 16-bit sized
object.
write_external32
void _ _write_external32(unsigned int address,
unsigned int memory_space,
unsigned long data)
Write 32 bits of data to external memory space memory_space starting from address
address
address
. The compiler would like to call this function if trying to write a 32-bit sized
object, such as a long or float type.
write_external64
void _ _write_external64(unsigned int address,
unsigned int memory_space,
unsigned long long data)
Write 64 bits of data to external memory space memory_space starting from address
address
address
. The compiler would like to call this function if trying to write a 64-bit sized
object, such as a long long or long double type.