OpenV2G
Macros | Functions
MethodsBag.c File Reference
#include "MethodsBag.h"
#include "ErrorCodes.h"

Macros

#define METHODS_BAG_C
 

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

Macro Definition Documentation

◆ METHODS_BAG_C

#define METHODS_BAG_C

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