ChibiOS/HAL 9.0.0
|
PLATFORM MAC subsystem low level driver header. More...
Go to the source code of this file.
Macros | |
#define | MAC_SUPPORTS_ZERO_COPY TRUE |
This implementation supports the zero-copy mode API. | |
#define | mac_lld_driver_fields |
Low level fields of the MAC driver structure. | |
#define | mac_lld_config_fields |
Low level fields of the MAC configuration structure. | |
#define | mac_lld_transmit_descriptor_fields |
Low level fields of the MAC transmit descriptor structure. | |
#define | mac_lld_receive_descriptor_fields |
Low level fields of the MAC receive descriptor structure. | |
PLATFORM configuration options | |
#define | PLATFORM_MAC_USE_MAC1 FALSE |
MAC driver enable switch. |
Functions | |
void | mac_lld_init (void) |
Low level MAC initialization. | |
void | mac_lld_start (MACDriver *macp) |
Configures and activates the MAC peripheral. | |
void | mac_lld_stop (MACDriver *macp) |
Deactivates the MAC peripheral. | |
msg_t | mac_lld_get_transmit_descriptor (MACDriver *macp, MACTransmitDescriptor *tdp) |
Returns a transmission descriptor. | |
void | mac_lld_release_transmit_descriptor (MACTransmitDescriptor *tdp) |
Releases a transmit descriptor and starts the transmission of the enqueued data as a single frame. | |
msg_t | mac_lld_get_receive_descriptor (MACDriver *macp, MACReceiveDescriptor *rdp) |
Returns a receive descriptor. | |
void | mac_lld_release_receive_descriptor (MACReceiveDescriptor *rdp) |
Releases a receive descriptor. | |
bool | mac_lld_poll_link_status (MACDriver *macp) |
Updates and returns the link status. | |
size_t | mac_lld_write_transmit_descriptor (MACTransmitDescriptor *tdp, uint8_t *buf, size_t size) |
Writes to a transmit descriptor's stream. | |
size_t | mac_lld_read_receive_descriptor (MACReceiveDescriptor *rdp, uint8_t *buf, size_t size) |
Reads from a receive descriptor's stream. | |
uint8_t * | mac_lld_get_next_transmit_buffer (MACTransmitDescriptor *tdp, size_t size, size_t *sizep) |
Returns a pointer to the next transmit buffer in the descriptor chain. | |
const uint8_t * | mac_lld_get_next_receive_buffer (MACReceiveDescriptor *rdp, size_t *sizep) |
Returns a pointer to the next receive buffer in the descriptor chain. |
PLATFORM MAC subsystem low level driver header.
Definition in file hal_mac_lld.h.