Go to the documentation of this file.
27 #if (HAL_USE_MAC == TRUE) || defined(__DOXYGEN__)
44 #if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
45 #define MAC_USE_ZERO_COPY FALSE
51 #if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
52 #define MAC_USE_EVENTS TRUE
96 #if (MAC_USE_EVENTS == TRUE) || defined(__DOXYGEN__)
97 #define macGetReceiveEventSource(macp) (&(macp)->rdevent)
113 #define macWriteTransmitDescriptor(tdp, buf, size) \
114 mac_lld_write_transmit_descriptor(tdp, buf, size)
128 #define macReadReceiveDescriptor(rdp, buf, size) \
129 mac_lld_read_receive_descriptor(rdp, buf, size)
131 #if (MAC_USE_ZERO_COPY == TRUE) || defined(__DOXYGEN__)
151 #define macGetNextTransmitBuffer(tdp, size, sizep) \
152 mac_lld_get_next_transmit_buffer(tdp, size, sizep)
168 #define macGetNextReceiveBuffer(rdp, sizep) \
169 mac_lld_get_next_receive_buffer(rdp, sizep)
184 void macSetAddress(
MACDriver *macp,
const uint8_t *p);
bool macPollLinkStatus(MACDriver *macp)
Updates and returns the link status.
Structure representing a receive descriptor.
Driver configuration structure.
void macReleaseTransmitDescriptor(MACTransmitDescriptor *tdp)
Releases a transmit descriptor and starts the transmission of the enqueued data as a single frame.
PLATFORM MAC subsystem low level driver header.
void macInit(void)
MAC Driver initialization.
msg_t macWaitReceiveDescriptor(MACDriver *macp, MACReceiveDescriptor *rdp, sysinterval_t timeout)
Waits for a received frame.
void macReleaseReceiveDescriptor(MACReceiveDescriptor *rdp)
Releases a receive descriptor.
msg_t macWaitTransmitDescriptor(MACDriver *macp, MACTransmitDescriptor *tdp, sysinterval_t timeout)
Allocates a transmission descriptor.
void macObjectInit(MACDriver *macp)
Initialize the standard part of a MACDriver structure.
const MACConfig * config
Current configuration data.
Structure representing a transmit descriptor.
void macStart(MACDriver *macp, const MACConfig *config)
Configures and activates the MAC peripheral.
uint64_t sysinterval_t
Type of time interval.
macstate_t
Driver state machine possible states.
Structure representing a MAC driver.
void macStop(MACDriver *macp)
Deactivates the MAC peripheral.