Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
type_converter32 Struct Reference

#include <utils.hpp>

Public Member Functions

 type_converter32 (uint32_t n)
 
uint32_t to_ui () const
 
float to_f () const
 

Public Attributes

union { 
 
   uint32_t   ui 
 
   float   f 
 
_data 
 

Detailed Description

Definition at line 13 of file utils.hpp.

Constructor & Destructor Documentation

◆ type_converter32()

type_converter32::type_converter32 ( uint32_t n)
inline

Definition at line 18 of file utils.hpp.

18{ _data.ui = n; }
union type_converter32::@70 _data

Member Function Documentation

◆ to_f()

float type_converter32::to_f ( ) const
inline

Definition at line 20 of file utils.hpp.

20{ return _data.f; }

◆ to_ui()

uint32_t type_converter32::to_ui ( ) const
inline

Definition at line 19 of file utils.hpp.

19{ return _data.ui; }

Member Data Documentation

◆ [union]

union { ... } type_converter32::_data

◆ f

float type_converter32::f

Definition at line 16 of file utils.hpp.

◆ ui

uint32_t type_converter32::ui

Definition at line 15 of file utils.hpp.


The documentation for this struct was generated from the following file: