MMgr v1.0.0
Zero-heap memory manager in C11. One borrowed buffer, carved by asserted offset.
Loading...
Searching...
No Matches
mmgr_praet_event Struct Reference

What the port layer reports when a transfer finishes. More...

#include <memoriam_praetereo.h>

Data Fields

const uint8_t * data
uint32_t completion_ms
uint32_t completion_us
uint16_t bytes
uint16_t sequence
uint8_t channel
uint8_t peripheral
uint8_t direction

Detailed Description

What the port layer reports when a transfer finishes.

Warning
data points at the port layer's buffer. It is valid only for the callback's duration [BORROWS].

Definition at line 32 of file memoriam_praetereo.h.

Field Documentation

◆ data

const uint8_t* mmgr_praet_event::data

Bytes the transfer moved [BORROWS].

Definition at line 34 of file memoriam_praetereo.h.

◆ completion_ms

uint32_t mmgr_praet_event::completion_ms

Completion time, whole milliseconds.

Definition at line 35 of file memoriam_praetereo.h.

◆ completion_us

uint32_t mmgr_praet_event::completion_us

Completion time, microseconds within that millisecond.

Definition at line 36 of file memoriam_praetereo.h.

◆ bytes

uint16_t mmgr_praet_event::bytes

Bytes in data.

Definition at line 37 of file memoriam_praetereo.h.

◆ sequence

uint16_t mmgr_praet_event::sequence

Sequence number the port layer assigns.

Definition at line 38 of file memoriam_praetereo.h.

◆ channel

uint8_t mmgr_praet_event::channel

Channel the transfer ran on.

Definition at line 39 of file memoriam_praetereo.h.

◆ peripheral

uint8_t mmgr_praet_event::peripheral

Peripheral the channel is wired to.

Definition at line 40 of file memoriam_praetereo.h.

◆ direction

uint8_t mmgr_praet_event::direction

Direction of the transfer.

Definition at line 41 of file memoriam_praetereo.h.


The documentation for this struct was generated from the following file: