mac_interface_st Struct Reference

#include <mac.h>


Detailed Description

Structure describing the CC1000 MAC-Interface.


Data Fields

u_short(* get_address )(void)
u_short(* get_mtu )(void)
int(* receive )(u_short *src, u_short *dst, u_char *data, u_short *data_length, u_long ms)
int(* send )(u_short dst, u_char *data, u_short data_len)


Field Documentation

u_short(* mac_interface_st::get_address)(void)

Returns the configured mac address.

Returns:
configured mac address.

u_short(* mac_interface_st::get_mtu)(void)

Returns the maximal payload size of a MAC packet.

Returns:
maximal payload size of a MAC packet.

int(* mac_interface_st::receive)(u_short *src, u_short *dst, u_char *data, u_short *data_length, u_long ms)

Receives a MAC packet.

Parameters:
src [out] source address
dst [out] destination address
data [out] payload of the packet
data_length [in] maximal size of the payload [out] actual size of the payload
ms [in] maximal duration (in ms) to wait for a packet
Returns:
0 on success, -1 on timeout.

int(* mac_interface_st::send)(u_short dst, u_char *data, u_short data_len)

Sends a MAC packet.

Parameters:
dst [in] destination address
data [in] payload of the packet
data_len [in] payload size
Returns:
0 on success, -1 otherwise.


Generated on Tue Jan 23 21:12:31 2007 for BTnut System Software by doxygen 1.4.7