Updated types to avoid reliance on uIP includes
This commit is contained in:
parent
b07cfde31b
commit
c8eecc5b02
1 changed files with 5 additions and 7 deletions
|
@ -42,7 +42,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: radio.h,v 1.4 2007/05/22 20:50:22 adamdunkels Exp $
|
* $Id: radio.h,v 1.5 2007/05/25 08:05:24 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -55,17 +55,15 @@
|
||||||
#ifndef __RADIO_H__
|
#ifndef __RADIO_H__
|
||||||
#define __RADIO_H__
|
#define __RADIO_H__
|
||||||
|
|
||||||
#include "contiki-net.h"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The structure of a device driver for a radio in Contiki.
|
* The structure of a device driver for a radio in Contiki.
|
||||||
*/
|
*/
|
||||||
struct radio_driver {
|
struct radio_driver {
|
||||||
/** Send a packet */
|
/** Send a packet */
|
||||||
int (* send)(const u8_t *buf, u16_t len);
|
int (* send)(const void *payload, unsigned short payload_len);
|
||||||
|
|
||||||
/** Read a received packet. */
|
/** Read a received packet into a buffer. */
|
||||||
u16_t (* read)(u8_t *buf, u16_t bufsize);
|
int (* read)(void *buf, unsigned short buf_len);
|
||||||
|
|
||||||
/** Set a function to be called when a packet has been received. */
|
/** Set a function to be called when a packet has been received. */
|
||||||
void (* set_receive_function)(void (*f)(const struct radio_driver *d));
|
void (* set_receive_function)(void (*f)(const struct radio_driver *d));
|
||||||
|
|
Loading…
Reference in a new issue