53 #define SIXTOP_SUBIE_ID 0xc9 67 const linkaddr_t *src_addr);
75 const linkaddr_t *peer_addr);
82 SIXP_ERROR_SCHEDULE_INCONSISTENCY,
83 SIXP_ERROR_TX_AFTER_TRANSACTION_TERMINATION,
84 SIXP_ERROR_INVALID_TRANS_STATE_TRANSITION,
99 const linkaddr_t *peer_addr);
148 mac_callback_t callback,
void *arg);
void(* sixtop_sf_input)(sixp_pkt_type_t type, sixp_pkt_code_t code, const uint8_t *body, uint16_t body_len, const linkaddr_t *src_addr)
Input Handler of Scheduling Function.
sixp_pkt_cmd_t
6P Command Identifiers
sixp_pkt_type_t
6P Message Types
/brief Scheduling Function Driver
void sixtop_init_sf(void)
Initialize installed SFs which has been added in the system This function is supposed to be invoked e...
sixp_error_t
6P internal error code, which SF is informed of through its sixtop_sf_error handler ...
Header file for the link-layer address representation
void(* sixtop_sf_timeout)(sixp_pkt_cmd_t cmd, const linkaddr_t *peer_addr)
Timeout Handler of Scheduling Function.
const sixtop_sf_t * sixtop_find_sf(uint8_t sfid)
Find a SF which has been added by SFID.
void(* sixtop_sf_error)(sixp_error_t err, sixp_pkt_cmd_t cmd, uint8_t seqno, const linkaddr_t *peer_addr)
Error Handler of Scheduling Function.
void sixtop_init(void)
Initialize 6top module This initialization function removes all the SFs which has been installed into...
void sixtop_input(void)
Input a packet stored in packetbuf.
sixtop_sf_input input
Input Handler.
6P Codes integrating Command IDs and Return Codes
int sixtop_add_sf(const sixtop_sf_t *sf)
Add a Scheduling Function (SF) to 6top Sublayer.
sixtop_sf_error error
Internal Error Handler.
6top Protocol (6P) Packet Manipulation APIs
sixtop_sf_timeout timeout
Transaction Timeout Handler.
int sixtop_output(const linkaddr_t *dest_addr, mac_callback_t callback, void *arg)
Output a 6P packet which is supposestored in packetbuf.
clock_time_t timeout_interval
Timeout Value.