1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/native/include/nativenet_internal.h

45 lines
1.0 KiB
C
Raw Normal View History

2013-08-29 14:41:55 +02:00
/**
* internal nativenet transceiver interface
*
* Copyright (C) 2013 Ludwig Ortmann
*
2013-11-22 20:47:05 +01:00
* This file is subject to the terms and conditions of the GNU Lesser General
2013-08-29 14:41:55 +02:00
* Public License. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @{
* @author Ludwig Ortmann <ludwig.ortmann@fu-berlin.de>
* @}
*/
2013-08-15 19:39:29 +02:00
#ifndef NATIVENET_INTERNAL_H
#define NATIVENET_INTERNAL_H
2013-08-08 11:08:33 +02:00
#include "tap.h"
#define NNEV_PWRDWN 0x01
#define NNEV_PWRUP 0x02
#define NNEV_MONITOR 0x03
#define NNEV_GETCHAN 0x04
#define NNEV_SETCHAN 0x05
#define NNEV_GETADDR 0x06
#define NNEV_SETADDR 0x07
#define NNEV_GETPAN 0x08
#define NNEV_SETPAN 0x09
#define NNEV_SEND 0x0a
#define NNEV_SWTRX 0x0b
#define NNEV_MAXEV 0x0b
struct rx_buffer_s {
radio_packet_t packet;
char data[NATIVE_MAX_DATA_LENGTH];
};
extern struct rx_buffer_s _nativenet_rx_buffer[RX_BUF_SIZE];
2013-08-08 11:08:33 +02:00
void _nativenet_handle_packet(radio_packet_t *packet);
int8_t send_buf(radio_packet_t *packet);
2013-08-15 19:39:29 +02:00
#endif /* NATIVENET_INTERNAL_H */