Classes | Defines | Typedefs | Functions
typedefs_shadow.h File Reference
#include <limits.h>
#include <stdint.h>
Include dependency graph for typedefs_shadow.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  union16
union  union32

Defines

#define SWAP_BYTES(u)   {int8u t; t=u.U8[0]; u.U8[0]=u.U8[1]; u.U8[1]=t;}
#define SWAP_ENDIANNESS(x)   (((x&0x000000FF)<<24) | ((x&0x0000FF00)<<8) | ((x&0xFF000000)>>24) | ((x&0x00FF0000)>>8))

Typedefs

typedef int16_t int16s
typedef uint16_t int16u
typedef int32_t int32s
typedef uint32_t int32u
typedef int8_t int8s
typedef uint8_t int8u

Functions

int32u atoiu_safe (char *s, int32u max_chars)
int32u bit_count_32 (int32u n)
void safe_string_copy (char *source, char *dest, int max_chars)
void swap_bytes (int16u *i)
int typedef_tests (void)

Define Documentation

#define SWAP_BYTES (   u)    {int8u t; t=u.U8[0]; u.U8[0]=u.U8[1]; u.U8[1]=t;}

Definition at line 119 of file typedefs_shadow.h.

#define SWAP_ENDIANNESS (   x)    (((x&0x000000FF)<<24) | ((x&0x0000FF00)<<8) | ((x&0xFF000000)>>24) | ((x&0x00FF0000)>>8))

Definition at line 120 of file typedefs_shadow.h.


Typedef Documentation

typedef int16_t int16s

Definition at line 42 of file typedefs_shadow.h.

typedef uint16_t int16u

Definition at line 47 of file typedefs_shadow.h.

typedef int32_t int32s

Definition at line 43 of file typedefs_shadow.h.

typedef uint32_t int32u

Definition at line 48 of file typedefs_shadow.h.

typedef int8_t int8s

Definition at line 41 of file typedefs_shadow.h.

typedef uint8_t int8u

Definition at line 46 of file typedefs_shadow.h.


Function Documentation

int32u atoiu_safe ( char *  s,
int32u  max_chars 
)
void safe_string_copy ( char *  source,
char *  dest,
int  max_chars 
)
void swap_bytes ( int16u i)
int typedef_tests ( void  )


sr_ronex_external_protocol
Author(s): Ugo Cupcic, Toni Oliver, Mark Pitchless
autogenerated on Fri Aug 28 2015 13:12:14