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

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

#include <ethernet.h>

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

Public Member Functions

 DataSentEvent (uint8_t *buffer, uint32_t size)
 Construct a new Data Sent 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 that was sent.
 
uint32_t size
 The size of the buffer that was 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 when data is sent, holds the buffer and size of the data.

Definition at line 49 of file ethernet.h.

Constructor & Destructor Documentation

◆ DataSentEvent()

DataSentEvent::DataSentEvent ( uint8_t buffer,
uint32_t  size 
)

Construct a new Data Sent Event object.

Parameters
bufferThe buffer that was sent
sizeThe size of the buffer

Definition at line 181 of file ethernet.cpp.

182 : Event(EthernetDriverEvents::DATA_SENT) {
183 this->buffer = buffer;
184 this->size = size;
185 this->size = size;
186}
Used to store information about an event, has a type and a return value.
uint8_t * buffer
The buffer that was sent.
Definition ethernet.h:51
uint32_t size
The size of the buffer that was sent.
Definition ethernet.h:52

References buffer, and size.

Member Data Documentation

◆ buffer

uint8_t* MaxOS::drivers::ethernet::DataSentEvent::buffer

The buffer that was sent.

Definition at line 51 of file ethernet.h.

Referenced by DataSentEvent().

◆ size

uint32_t MaxOS::drivers::ethernet::DataSentEvent::size

The size of the buffer that was sent.

Definition at line 52 of file ethernet.h.

Referenced by DataSentEvent().


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