psl1ght
A free SDK for Sony's PS3 console
|
SPU runtime library. More...
#include <stdint.h>
#include <sys/cdefs.h>
Go to the source code of this file.
Macros | |
#define | EVENT_DATA0_MASK 0x00FFFFFF |
#define | EVENT_PORT_SHIFT 24 |
#define | EVENT_PORT_MAX_NUM 63 |
Functions | |
int | spu_thread_send_event (uint8_t spup, uint32_t data0, uint32_t data1) |
Send an SPU thread user event. More... | |
int | spu_thread_throw_event (uint8_t spup, uint32_t data0, uint32_t data1) |
Send an SPU thread user event. More... | |
int | spu_thread_receive_event (uint32_t spuq, uint32_t *data0, uint32_t *data1, uint32_t *data2) |
Receive an event from a bound SPU event queue. More... | |
int | spu_thread_tryreceive_event (uint32_t spuq, uint32_t *data0, uint32_t *data1, uint32_t *data2) |
Receive an event from a bound SPU event queue if an event is present. More... | |
SPU runtime library.
These are the SPU library calls for SPU events.
int spu_thread_receive_event | ( | uint32_t | spuq, |
uint32_t * | data0, | ||
uint32_t * | data1, | ||
uint32_t * | data2 | ||
) |
Receive an event from a bound SPU event queue.
This is a blocking call. It waits for an event to be received.
spuq | Event queue binding id (as provided to sysSpuThreadBindQueue). |
data0 | Pointer to storage for the first event data field. |
data1 | Pointer to storage for the second event data field. |
data2 | Pointer to storage for the third event data field. |
int spu_thread_send_event | ( | uint8_t | spup, |
uint32_t | data0, | ||
uint32_t | data1 | ||
) |
Send an SPU thread user event.
This function sends an SPU thread user event to an event queue (secure mode). The sent data will be received as sys_event_t structure type. The data will be stored as the following:
int spu_thread_throw_event | ( | uint8_t | spup, |
uint32_t | data0, | ||
uint32_t | data1 | ||
) |
Send an SPU thread user event.
This function sends an SPU thread user event to an event queue (fire and forget mode). The sent data will be received as sys_event_t structure type. The data will be stored as the following:
int spu_thread_tryreceive_event | ( | uint32_t | spuq, |
uint32_t * | data0, | ||
uint32_t * | data1, | ||
uint32_t * | data2 | ||
) |
Receive an event from a bound SPU event queue if an event is present.
This call is non blocking. It returns even if no event has been received.
spuq | Event queue binding id (as provided to sysSpuThreadBindQueue). |
data0 | Pointer to storage for the first event data field. |
data1 | Pointer to storage for the second event data field. |
data2 | Pointer to storage for the third event data field. |