ChibiOS/RT Logo ChibiOS/RT

Architecture - Reference Manual - Guides

Defines | Functions

mac.h File Reference

MAC Driver macros and structures. More...

#include "mac_lld.h"

Go to the source code of this file.

Defines

#define macGetReceiveEventSource(macp)   (&(macp)->md_rdevent)
 Returns the received frames event source.
#define macWriteTransmitDescriptor(tdp, buf, size)   mac_lld_write_transmit_descriptor(tdp, buf, size)
 Writes to a transmit descriptor's stream.
#define macReadReceiveDescriptor(rdp, buf, size)   mac_lld_read_receive_descriptor(rdp, buf, size)
 Reads from a receive descriptor's stream.

Functions

void macInit (void)
 MAC Driver initialization.
void macObjectInit (MACDriver *macp)
 Initialize the standard part of a MACDriver structure.
void macSetAddress (MACDriver *macp, const uint8_t *p)
 MAC address setup.
msg_t macWaitTransmitDescriptor (MACDriver *macp, MACTransmitDescriptor *tdp, systime_t time)
 Allocates a transmission descriptor.
void macReleaseTransmitDescriptor (MACTransmitDescriptor *tdp)
 Releases a transmit descriptor and starts the transmission of the enqueued data as a single frame.
msg_t macWaitReceiveDescriptor (MACDriver *macp, MACReceiveDescriptor *rdp, systime_t time)
 Waits for a received frame.
void macReleaseReceiveDescriptor (MACReceiveDescriptor *rdp)
 Releases a receive descriptor.
bool_t macPollLinkStatus (MACDriver *macp)
 Updates and returns the link status.

Detailed Description

MAC Driver macros and structures.

Definition in file mac.h.


Generated on Sun Oct 24 2010 09:40:38 for ChibiOS/RT by doxygen 1.7.1