RTEMS 6.1-rc1
|
RTEMS File System Data. More...
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | rtems_rfs_data_ptr(_d) ((uint8_t*)(_d)) |
#define | rtems_rfs_data_get(_d, _t, _o, _s) (((_t)(rtems_rfs_data_ptr (_d)[_o])) << (_s)) |
#define | rtems_rfs_read_u8(_d) (*rtems_rfs_data_ptr (_d)) |
#define | rtems_rfs_read_u16(_d) |
#define | rtems_rfs_read_u32(_d) |
#define | rtems_rfs_write_u8(_d, _v) (*rtems_rfs_data_ptr (_d) = (uint8_t)(_v)) |
#define | rtems_rfs_write_u16(_d, _v) |
#define | rtems_rfs_write_u32(_d, _v) |
RTEMS File System Data.
RTEMS File System Data.
Access data in the correct byte order for the specific target we are running on.
#define rtems_rfs_data_get | ( | _d, | |
_t, | |||
_o, | |||
_s | |||
) | (((_t)(rtems_rfs_data_ptr (_d)[_o])) << (_s)) |
Helper function to get the data shifted in the correctly sized type.
#define rtems_rfs_data_ptr | ( | _d | ) | ((uint8_t*)(_d)) |
Helper function to make sure we have a byte pointer.
#define rtems_rfs_read_u16 | ( | _d | ) |
RFS Read Unsigned 16bit Integer
#define rtems_rfs_read_u32 | ( | _d | ) |
RFS Read Unsigned 32bit Integer
#define rtems_rfs_read_u8 | ( | _d | ) | (*rtems_rfs_data_ptr (_d)) |
RFS Read Unsigned 8bit Integer
#define rtems_rfs_write_u16 | ( | _d, | |
_v | |||
) |
RFS Write Unsigned 16bit Integer
#define rtems_rfs_write_u32 | ( | _d, | |
_v | |||
) |
RFS Write Unsigned 32bit Integer
#define rtems_rfs_write_u8 | ( | _d, | |
_v | |||
) | (*rtems_rfs_data_ptr (_d) = (uint8_t)(_v)) |
RFS Write Unsigned 8bit Integer