OpenV2G
Functions
MethodsBag.h File Reference

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

Detailed Description

Method bag for bit and octet functions.

Function Documentation

◆ exiGetCodingLength()

int exiGetCodingLength ( size_t  characteristics,
size_t *  codingLength 
)

Returns the number of bits to identify the characteristics.

Parameters
characteristicsnumber of characteristics
codingLengthnumber of bits
Returns
Error-Code <> 0

◆ numberOf7BitBlocksToRepresent()

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.

Parameters
ninteger value
Returns
Error-Code <> 0