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

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

#include <ethernet.h>

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

Public Member Functions

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

Public Attributes

uint8_t * buffer
 
uint32_t size
 
- 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 received, holds the buffer and size of the data.

Definition at line 61 of file ethernet.h.

Constructor & Destructor Documentation

◆ DataReceivedEvent()

DataReceivedEvent::DataReceivedEvent ( uint8_t buffer,
uint32_t  size 
)

Construct a new Data Received Event object.

Parameters
bufferThe buffer that was received
sizeThe size of the buffer

Definition at line 196 of file ethernet.cpp.

197 : Event(EthernetDriverEvents::DATA_RECEIVED) {
198 this->buffer = buffer;
199 this->size = size;
200}
Used to store information about an event, has a type and a return value.

References buffer, and size.

Member Data Documentation

◆ buffer

uint8_t* MaxOS::drivers::ethernet::DataReceivedEvent::buffer
Deprecated:
WRS

Definition at line 63 of file ethernet.h.

Referenced by DataReceivedEvent().

◆ size

uint32_t MaxOS::drivers::ethernet::DataReceivedEvent::size
Deprecated:
WRS

Definition at line 64 of file ethernet.h.

Referenced by DataReceivedEvent().


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