Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions sys/net/include/ieee802154_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ typedef struct __attribute__((packed)) {
uint8_t payload_len;
} ieee802154_frame_t;

/**
* Structure to represent an IEEE 802.15.4 packet for the transceiver.
*/
typedef struct __attribute__(( packed )) {
/* @{ */
uint8_t processing; /** < internal processing state */
uint8_t length; /** < the length of the frame of the frame including fcs*/
ieee802154_frame_t frame; /** < the ieee802154 frame */
int8_t rssi; /** < the rssi value */
uint8_t crc; /** < 1 if crc was successfull, 0 otherwise */
uint8_t lqi; /** < the link quality indicator */
/* @} */
} ieee802154_packet_t;

uint8_t ieee802154_frame_init(ieee802154_frame_t *frame, uint8_t *buf);
uint8_t ieee802154_frame_get_hdr_len(ieee802154_frame_t *frame);
uint8_t ieee802154_frame_read(uint8_t *buf, ieee802154_frame_t *frame, uint8_t len);
Expand Down
12 changes: 12 additions & 0 deletions sys/transceiver/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
MODULE =transceiver

ifneq (,$(filter cc2420,$(USEMODULE)))
INCLUDES += -I$(RIOTBASE)/sys/net/include
endif

ifneq (,$(filter at86rf231,$(USEMODULE)))
INCLUDES += -I$(RIOTBASE)/sys/net/include
endif

ifneq (,$(filter mc1322x,$(USEMODULE)))
INCLUDES += -I$(RIOTBASE)/sys/net/include
endif

include $(MAKEBASE)/Makefile.base
Loading