IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


Macros | Functions
Helper API

Detailed Description

Some miscellaneous helper functions.

Macros

#define hostToLE16   htole16
 Convert 16 bit from host endianess to little endian. More...
 
#define hostToLE32   htole32
 Convert 32 bit from host endianess to little endian. More...
 
#define hostToLE64   htole64
 Convert 64 bit from host endianess to little endian. More...
 
#define hostToBE16   htobe16
 Convert 16 bit from host endianess to big endian. More...
 
#define hostToBE32   htobe32
 Convert 32 bit from host endianess to big endian. More...
 
#define hostToBE64   htobe64
 Convert 64 bit from host endianess to big endian. More...
 
#define lEToHost16   le16toh
 Convert 16 bit from little endian to host endianess. More...
 
#define lEToHost32   le32toh
 Convert 32 bit from little endian to host endianess. More...
 
#define lEToHost64   le64toh
 Convert 64 bit from little endian to host endianess. More...
 
#define bEToHost16   be16toh
 Convert 16 bit from big endian to host endianess. More...
 
#define bEToHost32   be32toh
 Convert 32 bit from big endian to host endianess. More...
 
#define bEToHost64   be64toh
 Convert 64 bit from big endian to host endianess. More...
 
#define swap16   bswap_16
 Switch the byte endian on provided 16 bit short WORD. More...
 
#define swap32   bswap_32
 Switch the byte endian on provided 32 bit long WORD. More...
 
#define swap64   bswap_64
 Switch the byte endian on provided 64 bit long WORD. More...
 

Functions

static void packBool (unsigned char *p, bool value)
 Pack bool. More...
 
static void packUChar (unsigned char *p, unsigned char value)
 Pack unsigned char. More...
 
static void packSChar (unsigned char *p, signed char value)
 Pack signed char. More...
 
static void packChar (unsigned char *p, char value)
 Pack char. More...
 
static void packUShort (unsigned char *p, unsigned short value)
 Pack unsigned short. More...
 
static void packShort (unsigned char *p, short value)
 Pack short. More...
 
static void packULong (unsigned char *p, unsigned long value)
 Pack unsigned long. More...
 
static void packLong (unsigned char *p, long value)
 Pack long. More...
 
static void packULongLong (unsigned char *p, unsigned long long value)
 Pack unsigned long long. More...
 
static void packLongLong (unsigned char *p, long long value)
 Pack long long. More...
 
static void packFloat (unsigned char *p, float value)
 Pack float. More...
 
static void packDouble (unsigned char *p, double value)
 Pack double. More...
 
static bool unpackBool (const unsigned char *p)
 Unpack bool. More...
 
static unsigned char unpackUChar (const unsigned char *p)
 Unpack unsigned char. More...
 
static signed char unpackSChar (const unsigned char *p)
 Unpack signed char. More...
 
static char unpackChar (const unsigned char *p)
 Unpack char. More...
 
static unsigned short unpackUShort (const unsigned char *p)
 Unpack unsigned short. More...
 
static short unpackShort (const unsigned char *p)
 Unpack short. More...
 
static unsigned long unpackULong (const unsigned char *p)
 Unpack unsigned long. More...
 
static long unpackLong (const unsigned char *p)
 Unpack long. More...
 
static unsigned long long unpackULongLong (const unsigned char *p)
 Unpack unsigned long long. More...
 
static long long unpackLongLong (const unsigned char *p)
 Unpack long long. More...
 
static float unpackFloat (const unsigned char *p)
 Unpack float. More...
 
static double unpackDouble (const unsigned char *p)
 Unpack double. More...
 
static void packBoolArray (unsigned char *p, int index, bool value)
 Pack bool array. More...
 
static void packUShortArray (unsigned char *p, int index, unsigned short value)
 Pack unsigned short array. More...
 
static void packShortArray (unsigned char *p, int index, short value)
 Pack short array. More...
 
static void packULongArray (unsigned char *p, int index, unsigned long value)
 Pack unsigned long array. More...
 
static void packLongArray (unsigned char *p, int index, long value)
 Pack long array. More...
 
static void packFloatArray (unsigned char *p, int index, float value)
 Pack float array. More...
 
static void packDoubleArray (unsigned char *p, int index, double value)
 Pack double array. More...
 
static void packLongLongArray (unsigned char *p, int index, long long value)
 Pack long long array. More...
 
static void packULongLongArray (unsigned char *p, int index, unsigned long long value)
 Pack unsigned long long array. More...
 
static bool unpackBoolArray (const unsigned char *p, int index)
 Unpack bool array. More...
 
static unsigned short unpackUShortArray (const unsigned char *p, int index)
 Unpack unsigned short array. More...
 
static short unpackShortArray (const unsigned char *p, int index)
 Unpack short array. More...
 
static unsigned long unpackULongArray (const unsigned char *p, int index)
 Unpack unsigned long array. More...
 
static long unpackLongArray (const unsigned char *p, int index)
 Unpack long array. More...
 
static unsigned long long unpackULongLongArray (const unsigned char *p, int index)
 Unpack unsigned long long array. More...
 
static long long unpackLongLongArray (const unsigned char *p, int index)
 Unpack long long array. More...
 
static float unpackFloatArray (const unsigned char *p, int index)
 Unpack float array. More...
 
static double unpackDoubleArray (const unsigned char *p, int index)
 Unpack double array. More...
 
unsigned short helper_clibVersion (void)
 Get version for Beck C library. More...
 
static int helper_check_license_pki (unsigned short id, const char *publicKey)
 Check required license if installed. More...
 
void * progParentData (void)
 Retrieve pointer to parent program's data. More...
 
void progParentDataDetach (void *report)
 Detaches to program from the parent program's data. More...
 





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Fri Jun 8 2018 12:48:20 by Doxygen 1.8.13