2014-03-28 23:33:35 +08:00
|
|
|
#ifndef GMIO_INTERNAL_CONVERT_H
|
|
|
|
#define GMIO_INTERNAL_CONVERT_H
|
|
|
|
|
|
|
|
#include "../global.h"
|
|
|
|
|
2014-03-31 21:39:21 +08:00
|
|
|
union gmio_uint32_float
|
2014-03-28 23:33:35 +08:00
|
|
|
{
|
|
|
|
uint32_t as_uint32;
|
|
|
|
float as_float;
|
2014-03-31 21:39:21 +08:00
|
|
|
};
|
|
|
|
typedef union gmio_uint32_float gmio_uint32_float_t;
|
2014-03-28 23:33:35 +08:00
|
|
|
|
|
|
|
gmio_real32_t gmio_convert_real32(uint32_t val);
|
|
|
|
uint32_t gmio_convert_uint32(gmio_real32_t val);
|
|
|
|
|
|
|
|
#endif /* GMIO_INTERNAL_CONVERT_H */
|