Making a FAR pointer

Hi all,

I have the following:
u8_t far * ptr;
u8_t buf[10];

and on positions 1,2,3 (buf) I have the FAR address (3 bytes) that I want to use:

*ptr = 1; // for instance;

How can I give ptr the value of the 3 bytes on the array?
Something like : ptr = MAKE_FAR_PTR(&buf[1]);

This is for Dallas contiguous mode.



thanks,
joao

Parents Reply Children
No data
More questions in this forum