OpenWSN Firmware
rrube.c File Reference
#include "openwsn.h"
#include "rrube.h"
#include "opencoap.h"
#include "opentimers.h"
#include "openqueue.h"
#include "packetfunctions.h"
#include "openserial.h"
#include "idmanager.h"
#include "board.h"
#include "heli.h"
#include "leds.h"

Data Structures

struct  rrube_vars_t
 

Enumerations

enum  rrube_state_t { RRUBE_ST_IDLE, RRUBE_ST_WAITTXPUT, RRUBE_ST_PUTRXD, RRUBE_ST_WAITACK }
 

Functions

owerror_t rrube_receive (OpenQueueEntry_t *msg, coap_header_iht *coap_header, coap_option_iht *coap_options)
 
void rrube_timer (void)
 
void rrube_sendDone (OpenQueueEntry_t *msg, owerror_t error)
 
uint8_t hexToAscii (uint8_t hex)
 converts a hex number into its ASCII representation. More...
 
void rrube_init ()
 

Variables

rrube_vars_t rrube_vars
 
const uint8_t rrube_path0 [] = "g"
 

Enumeration Type Documentation

Enumerator
RRUBE_ST_IDLE 
RRUBE_ST_WAITTXPUT 
RRUBE_ST_PUTRXD 
RRUBE_ST_WAITACK 

Function Documentation

uint8_t hexToAscii ( uint8_t  hex)

converts a hex number into its ASCII representation.

For example: 0x0a -> 'a'

Parameters
[in]hexA number between 0x00 and 0x0f.
Returns
The ASCII representation of the number, between '0' and 'f'.
owerror_t rrube_receive ( OpenQueueEntry_t msg,
coap_header_iht coap_header,
coap_option_iht coap_options 
)
void rrube_sendDone ( OpenQueueEntry_t msg,
owerror_t  error 
)
void rrube_timer ( void  )

Variable Documentation

const uint8_t rrube_path0[] = "g"
rrube_vars_t rrube_vars