Epok Engine

EPOK RUNTIME

epok::spu::upload

Function template · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Function template

Main-thread DMA only.

Belongs to
epok::spu
Header
spu_transfer.hpp
Overloads
1

Declaration

template
Declaration
template<class H=Hardware> bool upload(const void* data,uint32_t address,uint32_t bytes,uint32_t budget=10000000)

Main-thread DMA only.

ParameterTypeMeaning
dataconst void *Not documented; consult the linked header.
addressuint32_tNot documented; consult the linked header.
bytesuint32_tNot documented; consult the linked header.
budgetuint32_tNot documented; consult the linked header.

Returns: bool. Consult the linked header for its meaning.

Example sketch

C++ example
#include "spu_transfer.hpp"

// Replace these template arguments with types or values accepted by the declaration:
// H

// Assume these named values have been initialized with valid data:
// const void * data
// uint32_t address
// uint32_t bytes
// uint32_t budget

epok::spu& object = /* obtain a valid instance */;

auto result = object.upload<H>(data, address, bytes, budget);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/spu_transfer.hpp:23

Related members