libschc
Classes | Macros | Typedefs | Enumerations | Functions
config.h File Reference
#include "schc_config.h"

Go to the source code of this file.

Classes

struct  schc_field
 
struct  schc_ipv6_rule_t
 
struct  schc_udp_rule_t
 
struct  schc_coap_rule_t
 
struct  schc_layer_rule_t
 
struct  schc_compression_rule_t
 
struct  schc_rule_t
 
struct  schc_device
 
struct  schc_udpip_hdr
 

Macros

#define UDP_HLEN   8
 
#define IP6_HLEN   40
 
#define COAP_OPTIONS_LENGTH   16
 
#define WINDOW_SIZE_BITS   1
 
#define MIC_C_SIZE_BITS   1
 

Typedefs

typedef uint16_t schc_ip6addr_t[8]
 
typedef schc_ip6addr_t schc_ipaddr_t
 

Enumerations

enum  direction { UP = 0, DOWN = 1, BI = 2 }
 
enum  device_type { NETWORK_GATEWAY = 0, DEVICE = 1 }
 
enum  CDA {
  NOTSENT = 0, VALUESENT = 1, MAPPINGSENT = 2, LSB = 3,
  COMPLENGTH = 4, COMPCHK = 5, DEVIID = 6, APPIID = 7
}
 

Functions

static uint8_t equal (struct schc_field *target_field, unsigned char *field_value)
 
static uint8_t ignore (struct schc_field *target_field, unsigned char *field_value)
 
static uint8_t MSB (struct schc_field *target_field, unsigned char *field_value)
 
static uint8_t matchmap (struct schc_field *target_field, unsigned char *field_value)
 

Macro Definition Documentation

◆ COAP_OPTIONS_LENGTH

#define COAP_OPTIONS_LENGTH   16

◆ IP6_HLEN

#define IP6_HLEN   40

◆ MIC_C_SIZE_BITS

#define MIC_C_SIZE_BITS   1

◆ UDP_HLEN

#define UDP_HLEN   8

◆ WINDOW_SIZE_BITS

#define WINDOW_SIZE_BITS   1

Typedef Documentation

◆ schc_ip6addr_t

typedef uint16_t schc_ip6addr_t[8]

◆ schc_ipaddr_t

Enumeration Type Documentation

◆ CDA

enum CDA
Enumerator
NOTSENT 
VALUESENT 
MAPPINGSENT 
LSB 
COMPLENGTH 
COMPCHK 
DEVIID 
APPIID 

◆ device_type

Enumerator
NETWORK_GATEWAY 
DEVICE 

◆ direction

enum direction
Enumerator
UP 
DOWN 
BI 

Function Documentation

◆ equal()

static uint8_t equal ( struct schc_field target_field,
unsigned char *  field_value 
)
static

◆ ignore()

static uint8_t ignore ( struct schc_field target_field,
unsigned char *  field_value 
)
static

◆ matchmap()

static uint8_t matchmap ( struct schc_field target_field,
unsigned char *  field_value 
)
static

◆ MSB()

static uint8_t MSB ( struct schc_field target_field,
unsigned char *  field_value 
)
static