ChibiOS/HAL 9.0.0
hal_mac_driver Struct Reference

Structure representing a MAC driver. More...

#include <hal_mac.h>

Collaboration diagram for hal_mac_driver:
Collaboration graph

Data Fields

macstate_t state
 Driver state.
const MACConfigconfig
 Current configuration data.
threads_queue_t tdqueue
 Transmit threads queue.
threads_queue_t rdqueue
 Receive threads queue.
event_source_t es
 MAC events source.
eventflags_t flags
 Locally held event flags for callback use.
maccb_t cb
 Events callback.
void * arg
 User argument.

Detailed Description

Structure representing a MAC driver.

Note
Implementations may extend this structure to contain more, architecture dependent, fields.

Definition at line 127 of file hal_mac.h.

Field Documentation

◆ state

◆ config

const MACConfig* hal_mac_driver::config

Current configuration data.

Definition at line 135 of file hal_mac.h.

Referenced by macObjectInit(), macStart(), and macStop().

◆ tdqueue

threads_queue_t hal_mac_driver::tdqueue

Transmit threads queue.

Definition at line 139 of file hal_mac.h.

Referenced by macObjectInit(), and macWaitTransmitDescriptor().

◆ rdqueue

threads_queue_t hal_mac_driver::rdqueue

Receive threads queue.

Definition at line 143 of file hal_mac.h.

Referenced by macObjectInit(), and macWaitReceiveDescriptor().

◆ es

event_source_t hal_mac_driver::es

MAC events source.

Definition at line 148 of file hal_mac.h.

Referenced by macObjectInit().

◆ flags

eventflags_t hal_mac_driver::flags

Locally held event flags for callback use.

Definition at line 153 of file hal_mac.h.

Referenced by macGetAndClearEventsI(), and macObjectInit().

◆ cb

maccb_t hal_mac_driver::cb

Events callback.

Note
Can be NULL.

Definition at line 158 of file hal_mac.h.

Referenced by macObjectInit().

◆ arg

void* hal_mac_driver::arg

User argument.

Note
Can be retrieved through the ethp argument of the callback.

Definition at line 163 of file hal_mac.h.

Referenced by macObjectInit().