knx
ETS configurable knx-stack
bits.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* IsrFuncPtr) (void)
 
typedef void(* EspIsrFuncPtr) (void *)
 
typedef void(* voidFuncPtr) (void)
 

Enumerations

enum  ParameterFloatEncodings { Float_Enc_DPT9 = 0 , Float_Enc_IEEE754Single = 1 , Float_Enc_IEEE754Double = 2 }
 

Functions

uint32_t millis ()
 
void attachInterrupt (uint32_t pin, IsrFuncPtr callback, uint32_t mode)
 
void delay (uint32_t millis)
 
void delayMicroseconds (unsigned int howLong)
 
void pinMode (uint32_t dwPin, uint32_t dwMode)
 
void digitalWrite (uint32_t dwPin, uint32_t dwVal)
 
uint32_t digitalRead (uint32_t dwPin)
 
void attachInterrupt (uint32_t pin, voidFuncPtr callback, uint32_t mode)
 
void print (const char[])
 
void print (char)
 
void print (unsigned char, int=DEC)
 
void print (int, int=DEC)
 
void print (unsigned int, int=DEC)
 
void print (long, int=DEC)
 
void print (unsigned long, int=DEC)
 
void print (long long, int=DEC)
 
void print (unsigned long long, int=DEC)
 
void print (double)
 
void println (const char[])
 
void println (char)
 
void println (unsigned char, int=DEC)
 
void println (int, int=DEC)
 
void println (unsigned int, int=DEC)
 
void println (long, int=DEC)
 
void println (unsigned long, int=DEC)
 
void println (long long, int=DEC)
 
void println (unsigned long long, int=DEC)
 
void println (double)
 
void println (void)
 
void printHex (const char *suffix, const uint8_t *data, size_t length, bool newline=true)
 
const uint8_t * popByte (uint8_t &b, const uint8_t *data)
 
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)
 

Typedef Documentation

◆ EspIsrFuncPtr

typedef void(* EspIsrFuncPtr) (void *)

Definition at line 48 of file bits.h.

◆ IsrFuncPtr

typedef void(* IsrFuncPtr) (void)

Definition at line 47 of file bits.h.

◆ voidFuncPtr

typedef void(* voidFuncPtr) (void)

Definition at line 76 of file bits.h.

Enumeration Type Documentation

◆ ParameterFloatEncodings

Enumerator
Float_Enc_DPT9 
Float_Enc_IEEE754Single 
Float_Enc_IEEE754Double 

Definition at line 148 of file bits.h.

Function Documentation

◆ attachInterrupt() [1/2]

void attachInterrupt ( uint32_t  pin,
IsrFuncPtr  callback,
uint32_t  mode 
)

Definition at line 469 of file cc1310_platform.cpp.

Here is the caller graph for this function:

◆ attachInterrupt() [2/2]

void attachInterrupt ( uint32_t  pin,
voidFuncPtr  callback,
uint32_t  mode 
)

Definition at line 761 of file linux_platform.cpp.

◆ 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.

◆ delay()

void delay ( uint32_t  millis)

Definition at line 131 of file cc1310_platform.cpp.

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

◆ delayMicroseconds()

void delayMicroseconds ( unsigned int  howLong)

Definition at line 138 of file cc1310_platform.cpp.

◆ digitalRead()

uint32_t digitalRead ( uint32_t  dwPin)

Definition at line 424 of file cc1310_platform.cpp.

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

◆ digitalWrite()

void digitalWrite ( uint32_t  dwPin,
uint32_t  dwVal 
)

Definition at line 750 of file linux_platform.cpp.

Here is the call graph for this function:

◆ 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:

◆ millis()

uint32_t millis ( )

Definition at line 123 of file cc1310_platform.cpp.

Here is the caller graph for this function:

◆ pinMode()

void pinMode ( uint32_t  dwPin,
uint32_t  dwMode 
)

Definition at line 744 of file linux_platform.cpp.

Here is the call 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 162 of file arduino_platform.cpp.

Here is the call graph for this function:

◆ 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  num)

Definition at line 227 of file arduino_platform.cpp.

◆ print() [4/10]

void print ( int  num,
int  base = DEC 
)

Definition at line 182 of file arduino_platform.cpp.

Here is the call graph for this function:

◆ print() [5/10]

void print ( long long  num,
int  base = DEC 
)

Definition at line 226 of file cc1310_platform.cpp.

Here is the call graph for this function:

◆ print() [6/10]

void print ( long  num,
int  base = DEC 
)

Definition at line 202 of file arduino_platform.cpp.

Here is the call graph for this function:

◆ print() [7/10]

void print ( unsigned char  num,
int  base = DEC 
)

Definition at line 172 of file arduino_platform.cpp.

Here is the call graph for this function:

◆ print() [8/10]

void print ( unsigned int  num,
int  base = DEC 
)

Definition at line 192 of file arduino_platform.cpp.

Here is the call graph for this function:

◆ print() [9/10]

void print ( unsigned long long  num,
int  base = DEC 
)

Definition at line 222 of file arduino_platform.cpp.

Here is the call graph for this function:

◆ print() [10/10]

void print ( unsigned long  num,
int  base = DEC 
)

Definition at line 212 of file arduino_platform.cpp.

Here is the call graph for this function:

◆ printHex()

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

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 237 of file arduino_platform.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 304 of file arduino_platform.cpp.

Here is the call graph for this function:

◆ println() [4/11]

void println ( int  num,
int  base = DEC 
)

Definition at line 257 of file arduino_platform.cpp.

Here is the call graph for this function:

◆ println() [5/11]

void println ( long long  num,
int  base = DEC 
)

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 = DEC 
)

Definition at line 277 of file arduino_platform.cpp.

Here is the call graph for this function:

◆ println() [7/11]

void println ( unsigned char  num,
int  base = DEC 
)

Definition at line 247 of file arduino_platform.cpp.

Here is the call graph for this function:

◆ println() [8/11]

void println ( unsigned int  num,
int  base = DEC 
)

Definition at line 267 of file arduino_platform.cpp.

Here is the call graph for this function:

◆ println() [9/11]

void println ( unsigned long long  num,
int  base = DEC 
)

Definition at line 298 of file arduino_platform.cpp.

Here is the call graph for this function:

◆ println() [10/11]

void println ( unsigned long  num,
int  base = DEC 
)

Definition at line 287 of file arduino_platform.cpp.

Here is the call graph for this function:

◆ println() [11/11]

void println ( void  )

Definition at line 309 of file arduino_platform.cpp.

Here is the call graph for this function:
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: