knx
ETS configurable knx-stack
bits.cpp File Reference

Go to the source code of this file.

Functions

const uint8_t * popByte (uint8_t &b, const uint8_t *data)
 
void printHex (const char *suffix, const uint8_t *data, size_t length, bool newline)
 
const uint8_t * popWord (uint16_t &w, const uint8_t *data)
 
const uint8_t * popInt (uint32_t &i, const uint8_t *data)
 
const uint8_t * popByteArray (uint8_t *dst, uint32_t size, const uint8_t *data)
 
uint8_t * pushByte (uint8_t b, uint8_t *data)
 
uint8_t * pushWord (uint16_t w, uint8_t *data)
 
uint8_t * pushInt (uint32_t i, uint8_t *data)
 
uint8_t * pushByteArray (const uint8_t *src, uint32_t size, uint8_t *data)
 
uint16_t getWord (const uint8_t *data)
 
uint32_t getInt (const uint8_t *data)
 
void sixBytesFromUInt64 (uint64_t num, uint8_t *toByteArray)
 
uint64_t sixBytesToUInt64 (uint8_t *data)
 
uint16_t crc16Ccitt (uint8_t *input, uint16_t length)
 
uint16_t crc16Dnp (uint8_t *input, uint16_t length)
 
void print (const char str[])
 
void print (char c)
 
void print (unsigned char b, int base)
 
void print (int n, int base)
 
void print (unsigned int n, int base)
 
void print (long n, int base)
 
void print (unsigned long n, int base)
 
void print (long long n, int base)
 
void print (unsigned long long n, int base)
 
void print (double n)
 
void println (void)
 
void println (const char c[])
 
void println (char c)
 
void println (unsigned char b, int base)
 
void println (int num, int base)
 
void println (unsigned int num, int base)
 
void println (long num, int base)
 
void println (unsigned long num, int base)
 
void println (long long num, int base)
 
void println (unsigned long long num, int base)
 
void println (double num)
 

Function Documentation

◆ crc16Ccitt()

uint16_t crc16Ccitt ( uint8_t *  input,
uint16_t  length 
)

Definition at line 133 of file bits.cpp.

Here is the caller graph for this function:

◆ crc16Dnp()

uint16_t crc16Dnp ( uint8_t *  input,
uint16_t  length 
)

Definition at line 153 of file bits.cpp.

◆ getInt()

uint32_t getInt ( const uint8_t *  data)

Definition at line 96 of file bits.cpp.

Here is the caller graph for this function:

◆ getWord()

uint16_t getWord ( const uint8_t *  data)

Definition at line 91 of file bits.cpp.

Here is the caller graph for this function:

◆ popByte()

const uint8_t* popByte ( uint8_t &  b,
const uint8_t *  data 
)

Definition at line 4 of file bits.cpp.

Here is the caller graph for this function:

◆ popByteArray()

const uint8_t* popByteArray ( uint8_t *  dst,
uint32_t  size,
const uint8_t *  data 
)

Definition at line 48 of file bits.cpp.

Here is the caller graph for this function:

◆ popInt()

const uint8_t* popInt ( uint32_t &  i,
const uint8_t *  data 
)

Definition at line 41 of file bits.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ popWord()

const uint8_t* popWord ( uint16_t &  w,
const uint8_t *  data 
)

Definition at line 34 of file bits.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print() [1/10]

void print ( char  c)

Definition at line 218 of file bits.cpp.

◆ print() [2/10]

void print ( const char  str[])

Definition at line 214 of file bits.cpp.

Here is the caller graph for this function:

◆ print() [3/10]

void print ( double  n)

Definition at line 306 of file bits.cpp.

◆ print() [4/10]

void print ( int  n,
int  base 
)

Definition at line 234 of file bits.cpp.

◆ print() [5/10]

void print ( long long  n,
int  base 
)

Definition at line 282 of file bits.cpp.

◆ print() [6/10]

void print ( long  n,
int  base 
)

Definition at line 258 of file bits.cpp.

◆ print() [7/10]

void print ( unsigned char  b,
int  base 
)

Definition at line 222 of file bits.cpp.

◆ print() [8/10]

void print ( unsigned int  n,
int  base 
)

Definition at line 246 of file bits.cpp.

◆ print() [9/10]

void print ( unsigned long long  n,
int  base 
)

Definition at line 294 of file bits.cpp.

◆ print() [10/10]

void print ( unsigned long  n,
int  base 
)

Definition at line 270 of file bits.cpp.

◆ printHex()

void printHex ( const char *  suffix,
const uint8_t *  data,
size_t  length,
bool  newline 
)

Definition at line 12 of file bits.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ println() [1/11]

void println ( char  c)

Definition at line 319 of file bits.cpp.

Here is the call graph for this function:

◆ println() [2/11]

void println ( const char  c[])

Definition at line 314 of file bits.cpp.

Here is the call graph for this function:

◆ println() [3/11]

void println ( double  num)

Definition at line 359 of file bits.cpp.

Here is the call graph for this function:

◆ println() [4/11]

void println ( int  num,
int  base 
)

Definition at line 329 of file bits.cpp.

Here is the call graph for this function:

◆ println() [5/11]

void println ( long long  num,
int  base 
)

Definition at line 349 of file bits.cpp.

Here is the call graph for this function:

◆ println() [6/11]

void println ( long  num,
int  base 
)

Definition at line 339 of file bits.cpp.

Here is the call graph for this function:

◆ println() [7/11]

void println ( unsigned char  b,
int  base 
)

Definition at line 324 of file bits.cpp.

Here is the call graph for this function:

◆ println() [8/11]

void println ( unsigned int  num,
int  base 
)

Definition at line 334 of file bits.cpp.

Here is the call graph for this function:

◆ println() [9/11]

void println ( unsigned long long  num,
int  base 
)

Definition at line 354 of file bits.cpp.

Here is the call graph for this function:

◆ println() [10/11]

void println ( unsigned long  num,
int  base 
)

Definition at line 344 of file bits.cpp.

Here is the call graph for this function:

◆ println() [11/11]

void println ( void  )

Definition at line 310 of file bits.cpp.

Here is the caller graph for this function:

◆ pushByte()

uint8_t* pushByte ( uint8_t  b,
uint8_t *  data 
)

Definition at line 57 of file bits.cpp.

Here is the caller graph for this function:

◆ pushByteArray()

uint8_t* pushByteArray ( const uint8_t *  src,
uint32_t  size,
uint8_t *  data 
)

Definition at line 82 of file bits.cpp.

Here is the caller graph for this function:

◆ pushInt()

uint8_t* pushInt ( uint32_t  i,
uint8_t *  data 
)

Definition at line 72 of file bits.cpp.

Here is the caller graph for this function:

◆ pushWord()

uint8_t* pushWord ( uint16_t  w,
uint8_t *  data 
)

Definition at line 64 of file bits.cpp.

Here is the caller graph for this function:

◆ sixBytesFromUInt64()

void sixBytesFromUInt64 ( uint64_t  num,
uint8_t *  toByteArray 
)

Definition at line 101 of file bits.cpp.

Here is the caller graph for this function:

◆ sixBytesToUInt64()

uint64_t sixBytesToUInt64 ( uint8_t *  data)

Definition at line 111 of file bits.cpp.

Here is the caller graph for this function: