Max OS 0.3
Loading...
Searching...
No Matches
MaxOS::drivers::ethernet::BeforeSendEvent Class Reference

Event that is triggered before data is sent, holds the buffer and size of the data. More...

#include <ethernet.h>

Inheritance diagram for MaxOS::drivers::ethernet::BeforeSendEvent:
MaxOS::common::Event< EthernetDriverEvents >

Public Member Functions

 BeforeSendEvent (uint8_t *buffer, uint32_t size)
 Construct a new Before send Event object.
 
- Public Member Functions inherited from MaxOS::common::Event< EthernetDriverEvents >
 Event (EthernetDriverEvents type)
 Constructs a new Event object.
 

Public Attributes

uint8_t * buffer
 The buffer to be sent.
 
uint32_t size
 The size of the buffer to be sent.
 
- Public Attributes inherited from MaxOS::common::Event< EthernetDriverEvents >
EthernetDriverEvents type
 
uint8_tbuffer_value
 
uint32_t int_value
 
bool bool_value
 
union { 
 
   uint8_t *   buffer_value 
 
   uint32_t   int_value 
 
   bool   bool_value 
 
return_value 
 

Detailed Description

Event that is triggered before data is sent, holds the buffer and size of the data.

Definition at line 37 of file ethernet.h.

Constructor & Destructor Documentation

◆ BeforeSendEvent()

BeforeSendEvent::BeforeSendEvent ( uint8_t buffer,
uint32_t  size 
)

Construct a new Before send Event object.

Parameters
bufferThe buffer to send
sizeThe size of the buffer

Definition at line 211 of file ethernet.cpp.

212 : Event(EthernetDriverEvents::BEFORE_SEND) {
213 this->buffer = buffer;
214 this->size = size;
215}
Used to store information about an event, has a type and a return value.
uint32_t size
The size of the buffer to be sent.
Definition ethernet.h:40
uint8_t * buffer
The buffer to be sent.
Definition ethernet.h:39

References buffer, and size.

Member Data Documentation

◆ buffer

uint8_t* MaxOS::drivers::ethernet::BeforeSendEvent::buffer

The buffer to be sent.

Definition at line 39 of file ethernet.h.

Referenced by BeforeSendEvent().

◆ size

uint32_t MaxOS::drivers::ethernet::BeforeSendEvent::size

The size of the buffer to be sent.

Definition at line 40 of file ethernet.h.

Referenced by BeforeSendEvent().


The documentation for this class was generated from the following files: