libdragon
Data Structures | Defines | Typedefs | Functions
rsp.h File Reference

Hardware Coprocessor Interface. More...

Go to the source code of this file.

Data Structures

struct  ijob
 Internal Job structure. More...
struct  job_queue_t
 Internal Job Queue structure. More...

Defines

#define JOB_STATE_IDLE   0
 Job states.
#define JOB_STATE_QUEUED   1
#define JOB_STATE_RUNNING   2
#define JOB_STATE_FINISHED   3

Typedefs

typedef struct ijob job_t
 Internal Job structure.

Functions

void rsp_init (void)
 Initialize the RSP system.
void rsp_close (void)
 Close the RSP system.
void rsp_load_lib (uint8_t *lib)
 Load RSP library to D/IMEM.
uint32_t rsp_lib_fn (char *mod, uint32_t fn)
 Return the vector of the function entry point in a module.
void rsp_queue_job (job_t *job)
 Queue a job for the RSP.
void rsp_do_job (job_t *job)
 Queue a job for the RSP and wait until it's done.
void rsp_wait_job (job_t *job)
 Wait on a queued job for the RSP.
void rsp_abort_job (job_t *job)
 Abort a queued job for the RSP.
job_trsp_new_job (uint32_t fn, void(*cb)(job_t *), uint32_t count,...)
 Return a new job structure with fields filled in.
void rsp_dispose_job (job_t *job)
 Dispose of an existing job structure.

Detailed Description

Hardware Coprocessor Interface.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines