Single precision floating point conversion converter decoder makes it readable

Dependents:   AMIS30543

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SP_FP.h Source File

SP_FP.h

00001 #ifndef SP_FP_H
00002 #define SP_FP_H
00003 #include "mbed.h"
00004 
00005 class SP_FP {
00006 public:
00007     SP_FP();
00008     float decoder(uint32_t VALUE);
00009 
00010 private:
00011     float result;
00012     uint32_t value_Temp;  // Needed because of bitwise operations
00013 };
00014 
00015 #endif