EasyManua.ls Logo

Elprotronic MSP430 - F_Put_Byte_To_Buffer; F_Get_Byte_From_Buffer

Default Icon
119 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
0x00 to 0xFF - valid code data
-1 (0xFFFFFFFF) - code data not initialized on particular address
-2 (0xFFFFFFFE) - FPA_INVALID_NO
F_Put_Byte_to_Buffer
F_Put_Byte_to_Buffer - Write byte to temporary Write Data Buffer (See Figure 4.2)
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed sequentially.
Syntax:
MSPPRG_API INT_X F_Put_Byte_to_Buffer( LONG_X address, BYTE data );
address: temporary buffer address equal the RAM, register, I/O or Flash
destination address ( 0x0000 to 0x1FFFF )
data: Byte to be written.
Return value:
1 - TRUE if specified address is legal (0x0000 to 0x1FFFF)
0- FALSE - if address is not valid
-2 - FPA_INVALID_NO.
NOTE: Specified address in the temporary RAM or Flash buffer is the same as a physical
RAM/FLASH address.
Example:
....................
....................
for( addr = 0x1000; addr<0x1100; addr++ )
st = F_Put_Byte_to_Buffer( addr, data[addr] );
st = F_Copy_Buffer_to_Flash( 0x1000, 0x100 );
....................
see also F_Copy_Buffer_to_Flash,
F_Copy_Buffer_to_RAM,
F_Get_Byte_from_Buffer
F_Get_Byte_from_Buffer - Read one byte from the temporary Read Data Buffer (see
Figure 4.2)
VALID FPA index - ( 1 to 64 )
82

Table of Contents