rdmbcdtypes.h File Reference
Header for Binarycoded decimal (BCD) types. More...
#include "psptypes.h"
Include dependency graph for rdmbcdtypes.h:
This graph shows which files directly or indirectly include this file:
Data Structures 

struct  RDM_BCD_T 
The RDM Binary Coded Decimal (BCD) data structure. More... 

Macros 

#define  RDM_BCDLEN(prec) ((uint16_t) (offsetof (RDM_BCD_T, data) + (prec) + 1)) 
The length of a RDM BCD in bytes given by its precission. More... 

#define  RDM_BCD_MAXPRECISION 32 
The max presission for a RDM BCD. More... 

#define  RDM_BCD_MAXSCALE 32 
Enumerations 

enum  RDM_BCD_ROUNDING_MODE { RDM_BCD_ROUND_NEAREST_TIES_TO_EVEN, RDM_BCD_ROUND_NEAREST_TIES_AWAY_FROM_ZERO, RDM_BCD_ROUND_UP, RDM_BCD_ROUND_DOWN, RDM_BCD_ROUND_TOWARDS_ZERO } 
Rounding modes for RDM BCD. More... 

Detailed Description
Header for Binarycoded decimal (BCD) types.
Macro Definition Documentation
RDM_BCD_MAXPRECISION
#define RDM_BCD_MAXPRECISION 32 
The max presission for a RDM BCD.
RDM_BCD_MAXSCALE
#define RDM_BCD_MAXSCALE 32 
RDM_BCDLEN
#define RDM_BCDLEN  (  prec  )  ((uint16_t) (offsetof (RDM_BCD_T, data) + (prec) + 1)) 
The length of a RDM BCD in bytes given by its precission.
Enumeration Type Documentation
RDM_BCD_ROUNDING_MODE
Rounding modes for RDM BCD.
RDM_BCD_ROUNDING_MODE
Rounding modes for RDM BCD.
Definition: rdmbcdtypes.h:26
@ RDM_BCD_ROUND_NEAREST_TIES_TO_EVEN
Definition: rdmbcdtypes.h:27
@ RDM_BCD_ROUND_NEAREST_TIES_AWAY_FROM_ZERO
Definition: rdmbcdtypes.h:44