ChibiOS/HAL  6.1.0
hal_mac_lld.c File Reference

PLATFORM MAC subsystem low level driver source. More...

#include <string.h>
#include "hal.h"
#include "hal_mii.h"

Go to the source code of this file.

Functions

void mac_lld_init (void)
 Low level MAC initialization. More...
 
void mac_lld_start (MACDriver *macp)
 Configures and activates the MAC peripheral. More...
 
void mac_lld_stop (MACDriver *macp)
 Deactivates the MAC peripheral. More...
 
msg_t mac_lld_get_transmit_descriptor (MACDriver *macp, MACTransmitDescriptor *tdp)
 Returns a transmission descriptor. More...
 
void mac_lld_release_transmit_descriptor (MACTransmitDescriptor *tdp)
 Releases a transmit descriptor and starts the transmission of the enqueued data as a single frame. More...
 
msg_t mac_lld_get_receive_descriptor (MACDriver *macp, MACReceiveDescriptor *rdp)
 Returns a receive descriptor. More...
 
void mac_lld_release_receive_descriptor (MACReceiveDescriptor *rdp)
 Releases a receive descriptor. More...
 
bool mac_lld_poll_link_status (MACDriver *macp)
 Updates and returns the link status. More...
 
size_t mac_lld_write_transmit_descriptor (MACTransmitDescriptor *tdp, uint8_t *buf, size_t size)
 Writes to a transmit descriptor's stream. More...
 
size_t mac_lld_read_receive_descriptor (MACReceiveDescriptor *rdp, uint8_t *buf, size_t size)
 Reads from a receive descriptor's stream. More...
 
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. More...
 
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. More...
 

Variables

MACDriver ETHD1
 MAC1 driver identifier. More...
 

Detailed Description

PLATFORM MAC subsystem low level driver source.

Definition in file hal_mac_lld.c.