psl1ght
A free SDK for Sony's PS3 console
spu_event.h
Go to the documentation of this file.
1 
9 #ifndef __SPU_EVENT_H__
10 #define __SPU_EVENT_H__
11 
12 #include <stdint.h>
13 #include <sys/cdefs.h>
14 
15 #define EVENT_DATA0_MASK 0x00FFFFFF
16 #define EVENT_PORT_SHIFT 24
17 #define EVENT_PORT_MAX_NUM 63
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
37 int spu_thread_send_event(uint8_t spup,uint32_t data0,uint32_t data1);
38 
54 int spu_thread_throw_event(uint8_t spup,uint32_t data0,uint32_t data1);
55 
65 int spu_thread_receive_event(uint32_t spuq,uint32_t *data0,uint32_t *data1,uint32_t *data2);
66 
77 int spu_thread_tryreceive_event(uint32_t spuq,uint32_t *data0,uint32_t *data1,uint32_t *data2);
78 
79 #ifdef __cplusplus
80  }
81 #endif
82 
83 #endif
int spu_thread_throw_event(uint8_t spup, uint32_t data0, uint32_t data1)
Send an SPU thread user event.
int spu_thread_send_event(uint8_t spup, uint32_t data0, uint32_t data1)
Send an SPU thread user event.
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.
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.