sp500/dsp.h Source File#
|
Mobilint REGULUS v4.1
SP500 DSP API
|
dsp.h
Go to the documentation of this file.
sp500_buffer sp500_buffer_alloc(uint32_t size, uint32_t alignment)
Allocate a zero-copy buffer in shared memory.
Definition dsp.h:286
uint32_t sp500_get_dsp_timeout_ms(void)
Deadline currently in force, in milliseconds, after clamping.
void sp500_dsp_lock(void)
Take the one reentrant DSP lock, across threads and across processes.
void sp500_shmem_free(void *ptr)
Release a buffer from sp500_shmem_alloc(). NULL is ignored.
int sp500_dsp_is_open(void)
Non-blocking: 1 once sp500_dsp_open() has succeeded, 0 otherwise.
uint64_t sp500_shmem_phys_addr(const void *ptr)
Physical address of a shared-memory pointer, for NPU DMA.
const char * sp500_version_string(void)
Version of the loaded library as "major.minor.patch". Never NULL.
void * sp500_shmem_alloc(uint32_t size, uint32_t alignment)
Allocate inside the DSP shared-memory window.
const char * sp500_status_string(sp500_status status)
Human-readable name of a status code. Never NULL, never allocates.
uint32_t sp500_version(void)
Version of the loaded library, encoded like SP500_VERSION_INT.
void sp500_set_dsp_timeout_ms(uint32_t timeout_ms)
Raise the deadline applied to every subsequent DSP call.
int sp500_shmem_contains(const void *ptr)
1 when ptr lies inside the shared-memory window, 0 otherwise.
sp500_status sp500_dsp_open(uint32_t timeout_ms)
Attach to the DSP. Must succeed before any other DSP call.
void sp500_buffer_release(sp500_buffer *buffer)
Release a buffer and reset it to unused.
Definition dsp.h:316
sp500_buffer sp500_buffer_wrap(void *data, uint32_t size)
Wrap memory you already own. The call stages one copy in each direction; nothing is taken over and no...
Definition dsp.h:302
Generated by