OpenWSN Firmware

Implementation of the 6TiSCH Operation Sublayer (6top). More...

Data Structures

struct  sixtop_vars_t
 

Macros

#define SIX2SIX_TIMEOUT_MS   2000
 

Enumerations

enum  sixtop_CommandID_num { SIXTOP_SOFT_CELL_REQ = 0x00, SIXTOP_SOFT_CELL_RESPONSE = 0x01, SIXTOP_REMOVE_SOFT_CELL_REQUEST = 0x02 }
 
enum  six2six_state_t {
  SIX_IDLE = 0x00, SIX_SENDING_ADDREQUEST = 0x01, SIX_WAIT_ADDREQUEST_SENDDONE = 0x02, SIX_WAIT_ADDRESPONSE = 0x03,
  SIX_ADDRESPONSE_RECEIVED = 0x04, SIX_ADDREQUEST_RECEIVED = 0x05, SIX_SENDING_ADDRESPONSE = 0x06, SIX_WAIT_ADDRESPONSE_SENDDONE = 0x07,
  SIX_SENDING_REMOVEREQUEST = 0x08, SIX_WAIT_REMOVEREQUEST_SENDDONE = 0x09, SIX_REMOVEREQUEST_RECEIVED = 0x0a
}
 

Functions

void sixtop_init (void)
 
void sixtop_setKaPeriod (uint16_t kaPeriod)
 
void sixtop_addCells (open_addr_t *neighbor, uint16_t numCells)
 
void sixtop_removeCell (open_addr_t *neighbor)
 
owerror_t sixtop_send (OpenQueueEntry_t *msg)
 
void task_sixtopNotifSendDone (void)
 
void task_sixtopNotifReceive (void)
 
bool debugPrint_myDAGrank (void)
 Trigger this module to print status information, over serial. More...
 
bool debugPrint_kaPeriod (void)
 Trigger this module to print status information, over serial. More...
 

Detailed Description

Implementation of the 6TiSCH Operation Sublayer (6top).

6top is defined in the following drafts:

Author
Tengfei Chang tengf.nosp@m.ei.c.nosp@m.hang@.nosp@m.eecs.nosp@m..berk.nosp@m.eley.nosp@m..edu, July 2014.

Macro Definition Documentation

#define SIX2SIX_TIMEOUT_MS   2000

Enumeration Type Documentation

Enumerator
SIX_IDLE 
SIX_SENDING_ADDREQUEST 
SIX_WAIT_ADDREQUEST_SENDDONE 
SIX_WAIT_ADDRESPONSE 
SIX_ADDRESPONSE_RECEIVED 
SIX_ADDREQUEST_RECEIVED 
SIX_SENDING_ADDRESPONSE 
SIX_WAIT_ADDRESPONSE_SENDDONE 
SIX_SENDING_REMOVEREQUEST 
SIX_WAIT_REMOVEREQUEST_SENDDONE 
SIX_REMOVEREQUEST_RECEIVED 
Enumerator
SIXTOP_SOFT_CELL_REQ 
SIXTOP_SOFT_CELL_RESPONSE 
SIXTOP_REMOVE_SOFT_CELL_REQUEST 

Function Documentation

bool debugPrint_kaPeriod ( void  )

Trigger this module to print status information, over serial.

debugPrint_* functions are used by the openserial module to continuously print status information about several modules in the OpenWSN stack.

Returns
TRUE if this function printed something, FALSE otherwise.
bool debugPrint_myDAGrank ( void  )

Trigger this module to print status information, over serial.

debugPrint_* functions are used by the openserial module to continuously print status information about several modules in the OpenWSN stack.

Returns
TRUE if this function printed something, FALSE otherwise.
void sixtop_addCells ( open_addr_t neighbor,
uint16_t  numCells 
)
void sixtop_init ( void  )
void sixtop_removeCell ( open_addr_t neighbor)
owerror_t sixtop_send ( OpenQueueEntry_t msg)
void sixtop_setKaPeriod ( uint16_t  kaPeriod)
void task_sixtopNotifReceive ( void  )
void task_sixtopNotifSendDone ( void  )