Contiki 2.5
Macros | Functions
sdnv.c File Reference

implementation of SDNV functions More...

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "logging.h"
#include "agent.h"

Go to the source code of this file.

Macros

#define MAX_LENGTH   8
 maximum sdnv length
 

Functions

int sdnv_encode (uint32_t val, uint8_t *bp, size_t len)
 encodes an uint32 value in sdnv More...
 
size_t sdnv_encoding_len (uint32_t val)
 calculates the length needed to encode an uint32 value in sdnv More...
 
int sdnv_decode (const uint8_t *bp, size_t len, uint32_t *val)
 decodes a sdnv to an uint32 value More...
 
size_t sdnv_len (const uint8_t *bp)
 calculates the length of a sdnv More...
 

Detailed Description

implementation of SDNV functions

Author
Georg von Zengen (vonze.nosp@m.ng@i.nosp@m.br.cs.nosp@m..tu-.nosp@m.bs.de)

Definition in file sdnv.c.