OpenV2G
|
Method bag for bit and octet functions. More...
#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
Functions | |
int | exiGetCodingLength (size_t characteristics, size_t *codingLength) |
Returns the number of bits to identify the characteristics. More... | |
uint8_t | numberOf7BitBlocksToRepresent (uint32_t n) |
Returns the least number of 7 bit-blocks that is needed to represent the passed integer value. More... | |
Method bag for bit and octet functions.
int exiGetCodingLength | ( | size_t | characteristics, |
size_t * | codingLength | ||
) |
Returns the number of bits to identify the characteristics.
characteristics | number of characteristics |
codingLength | number of bits |
uint8_t numberOf7BitBlocksToRepresent | ( | uint32_t | n | ) |
Returns the least number of 7 bit-blocks that is needed to represent the passed integer value.
Note: Returns 1 if passed parameter is 0.
n | integer value |