> Anyone here have some experience with this datatype? > We have done something similar to the existing access functions:
#define EC_READ_SINGLE(DATA) ((float)(*((float *)((DATA))))) #define EC_WRITE_SINGLE(DATA, VAL) \ do { \ *((float*) ((DATA))) = (float) (VAL); \ } while (0) Note that the byte order may be different. In that case you can use cpu_to_le32 and friends. For us it worked since we also made the slave that generated the data. J. > > Thanks, > > Steven > > _______________________________________________ > etherlab-users mailing list > etherlab-users@etherlab.org > http://lists.etherlab.org/mailman/listinfo/etherlab-users > >
_______________________________________________ etherlab-users mailing list etherlab-users@etherlab.org http://lists.etherlab.org/mailman/listinfo/etherlab-users