Macro |
|
Set control register FSR1 to access the beginning of specified OS buffer via indirect addressing |
Purpose |
|
|
Syntax |
|
uns8 setFSR1(buffer) |
Parameters |
|
buffer: _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 |
|
• FSR1 addresses byte[0] of specified OS buffer • WREG = 64 |
Preconditions |
|
– |
Remarks |
|
See IQRF OS User’s guide, chapter Data memory (RAM). |
Side effects |
|
– |
See also |
|
|
Example |
|
setFSR1(_FSR_RF); // FSR1 addresses bufferRF[0] X = INDF1; // X = bufferRF[0] |