Contiki 2.5
Functions

this file defines the memory representation of an EID and provides methods for construction and parsing More...

#include <stdint.h>
#include "contiki.h"

Go to the source code of this file.

Functions

int eid_parse_host (char *buffer, uint8_t length, uint32_t *node_id)
 Parses an incoming string and fills out the EID struct. More...
 
int eid_parse_host_length (uint8_t *buffer, uint8_t length, uint32_t *node_id)
 Parses an byte buffer that contains the SDNV length and an EID string and fills out the EID struct. More...
 
int eid_parse_full (char *buffer, uint8_t length, uint32_t *node_id, uint32_t *service_id)
 Parses an incoming string and fills out the EID struct. More...
 
int eid_parse_full_length (uint8_t *buffer, uint8_t length, uint32_t *node_id, uint32_t *service_id)
 Parses an byte buffer that contains the SDNV length and an EID string and fills out the EID struct. More...
 
int eid_create_host (uint32_t node_id, char *buffer, uint8_t length)
 Converts the EID struct into a string representation. More...
 
int eid_create_host_length (uint32_t node_id, uint8_t *buffer, uint8_t length)
 Converts the EID struct into a string representation prefixed with the SDNV-encoded length. More...
 
int eid_create_full (uint32_t node_id, uint32_t service_id, char *buffer, uint8_t length)
 Converts the EID struct into a string representation. More...
 
int eid_create_full_length (uint32_t node_id, uint32_t service_id, uint8_t *buffer, uint8_t length)
 Converts the EID struct into a string representation prefixed with the SDNV-encoded length. More...
 

Detailed Description

this file defines the memory representation of an EID and provides methods for construction and parsing

Author
Wolf-Bastian Poettner poett.nosp@m.ner@.nosp@m.ibr.c.nosp@m.s.tu.nosp@m.-bs.d.nosp@m.e

Definition in file eid.h.