|
Contiki 3.x
|
MAC interface for packaging radio packets into 802.15.4 framesMore...
#include <string.h>#include "net/mac/sicslowmac/sicslowmac.h"#include "net/mac/frame802154.h"#include "net/packetbuf.h"#include "net/queuebuf.h"#include "net/netstack.h"#include "lib/random.h"Go to the source code of this file.
Functions | |
| static void | send_packet (mac_callback_t sent, void *ptr) |
Variables | |
| static uint8_t | mac_dsn |
| The sequence number (0x00 - 0xff) added to the transmitted data or MAC command frame. More... | |
| static uint16_t | mac_dst_pan_id = IEEE802154_PANID |
| The 16-bit identifier of the PAN on which the device is sending to. More... | |
| static uint16_t | mac_src_pan_id = IEEE802154_PANID |
| The 16-bit identifier of the PAN on which the device is operating. More... | |
MAC interface for packaging radio packets into 802.15.4 frames
Definition in file sicslowmac.c.
|
static |
Definition at line 97 of file sicslowmac.c.
References frame802154_fcf_t::ack_required, frame802154_t::dest_addr, frame802154_fcf_t::dest_addr_mode, frame802154_t::dest_pid, frame802154_t::fcf, frame802154_create(), frame802154_hdrlen(), frame802154_fcf_t::frame_pending, frame802154_fcf_t::frame_type, frame802154_fcf_t::frame_version, linkaddr_copy(), linkaddr_node_addr, mac_dsn, mac_dst_pan_id, mac_src_pan_id, MAC_TX_ERR, MAC_TX_OK, packetbuf_datalen(), packetbuf_dataptr(), packetbuf_hdralloc(), packetbuf_hdrptr(), packetbuf_holds_broadcast(), packetbuf_totlen(), frame802154_fcf_t::panid_compression, frame802154_t::payload, frame802154_t::payload_len, frame802154_fcf_t::security_enabled, frame802154_t::seq, frame802154_t::src_addr, frame802154_fcf_t::src_addr_mode, and frame802154_t::src_pid.
|
static |
The sequence number (0x00 - 0xff) added to the transmitted data or MAC command frame.
The default is a random value within the range.
Definition at line 69 of file sicslowmac.c.
Referenced by send_packet().
|
static |
The 16-bit identifier of the PAN on which the device is sending to.
If this value is 0xffff, the device is not associated.
Definition at line 75 of file sicslowmac.c.
Referenced by send_packet().
|
static |
The 16-bit identifier of the PAN on which the device is operating.
If this value is 0xffff, the device is not associated.
Definition at line 81 of file sicslowmac.c.
Referenced by send_packet().
1.8.6