00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00033 #ifndef _WRAPPERS_H_
00034 # define _WRAPPERS_H_
00035
00036 # include <stdint.h>
00037
00038 # include "stm.h"
00039
00040 # ifdef __cplusplus
00041 extern "C" {
00042 # endif
00043
00052 uint8_t stm_load_u8(TXPARAMS volatile uint8_t *addr);
00053
00062 uint16_t stm_load_u16(TXPARAMS volatile uint16_t *addr);
00063
00072 uint32_t stm_load_u32(TXPARAMS volatile uint32_t *addr);
00073
00082 uint64_t stm_load_u64(TXPARAMS volatile uint64_t *addr);
00083
00092 char stm_load_char(TXPARAMS volatile char *addr);
00093
00102 unsigned char stm_load_uchar(TXPARAMS volatile unsigned char *addr);
00103
00112 short stm_load_short(TXPARAMS volatile short *addr);
00113
00122 unsigned short stm_load_ushort(TXPARAMS volatile unsigned short *addr);
00123
00132 int stm_load_int(TXPARAMS volatile int *addr);
00133
00142 unsigned int stm_load_uint(TXPARAMS volatile unsigned int *addr);
00143
00152 long stm_load_long(TXPARAMS volatile long *addr);
00153
00162 unsigned long stm_load_ulong(TXPARAMS volatile unsigned long *addr);
00163
00172 float stm_load_float(TXPARAMS volatile float *addr);
00173
00182 double stm_load_double(TXPARAMS volatile double *addr);
00183
00192 void *stm_load_ptr(TXPARAMS volatile void **addr);
00193
00207 void stm_load_bytes(TXPARAMS volatile uint8_t *addr, uint8_t *buf, size_t size);
00208
00217 void stm_store_u8(TXPARAMS volatile uint8_t *addr, uint8_t value);
00218
00227 void stm_store_u16(TXPARAMS volatile uint16_t *addr, uint16_t value);
00228
00237 void stm_store_u32(TXPARAMS volatile uint32_t *addr, uint32_t value);
00238
00247 void stm_store_u64(TXPARAMS volatile uint64_t *addr, uint64_t value);
00248
00257 void stm_store_char(TXPARAMS volatile char *addr, char value);
00258
00267 void stm_store_uchar(TXPARAMS volatile unsigned char *addr, unsigned char value);
00268
00277 void stm_store_short(TXPARAMS volatile short *addr, short value);
00278
00287 void stm_store_ushort(TXPARAMS volatile unsigned short *addr, unsigned short value);
00288
00297 void stm_store_int(TXPARAMS volatile int *addr, int value);
00298
00307 void stm_store_uint(TXPARAMS volatile unsigned int *addr, unsigned int value);
00308
00317 void stm_store_long(TXPARAMS volatile long *addr, long value);
00318
00327 void stm_store_ulong(TXPARAMS volatile unsigned long *addr, unsigned long value);
00328
00337 void stm_store_float(TXPARAMS volatile float *addr, float value);
00338
00347 void stm_store_double(TXPARAMS volatile double *addr, double value);
00348
00357 void stm_store_ptr(TXPARAMS volatile void **addr, void *value);
00358
00371 void stm_store_bytes(TXPARAMS volatile uint8_t *addr, uint8_t *buf, size_t size);
00372
00386 void stm_set_bytes(TXPARAMS volatile uint8_t *addr, uint8_t byte, size_t count);
00387
00388 # ifdef __cplusplus
00389 }
00390 # endif
00391
00392 #endif