Macro |
|
Set control registers FSR0 and FSR1 to access the beginning of specified OS buffers via indirect addressing |
Purpose |
|
|
Syntax |
|
uns8 setFSR01(buffer0, buffer1) |
Parameters |
|
buffer0, buffer1: _FSR_NINFO Set FSR to networkInfo _FSR_INFO Set FSR to bufferINFO _FSR_COM Set FSR to bufferCOM _FSR_AUX Set FSR to bufferAUX _FSR_RF Set FSR to bufferRF _FSR_ntwADDR Set FSR to ntwADDR |
Return value |
|
64 Constant value to optimize possible subsequent work with buffers |
Output values |
|
• FSR0 and FSR1 address bytes[0] of specified OS buffers • WREG = 64 |
Preconditions |
|
– |
Remarks |
|
See IQRF OS User’s guide, chapter Data memory (RAM). |
Side effects |
|
– |
See also |
|
|
Example |
|
setFSR0(_FSR_COM); // FSR0 addresses bufferCOM[0] setFSR1(_FSR_RF); // FSR1 addresses bufferRF[0] setINDF1(INDF0); // bufferRF[0] = bufferCOM[0] |