PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
ps2cam_rpc.c File Reference
#include <tamtypes.h>
#include <kernel.h>
#include <sifrpc.h>
#include <stdio.h>
#include <string.h>
#include "../include/ps2cam_rpc.h"
+ Include dependency graph for ps2cam_rpc.c:

Go to the source code of this file.

Macros

#define PS2_CAM_RPC_ID   0x00FD000 +2
 

Functions

static SifRpcClientData_t cdata __attribute__ ((aligned(64)))
 
int PS2CamInit (int mode)
 
int PS2CamGetIRXVersion (void)
 
int PS2CamGetDeviceCount (void)
 
int PS2CamOpenDevice (int device_index)
 
int PS2CamCloseDevice (int handle)
 
int PS2CamGetDeviceStatus (int handle)
 
int PS2CamGetDeviceInfo (int handle, PS2CAM_DEVICE_INFO *info)
 
int PS2CamSetDeviceBandwidth (int handle, char bandwidth)
 
int PS2CamReadPacket (int handle)
 
int PS2CamSetLEDMode (int handle, int mode)
 
int PS2CamSetDeviceConfig (int handle, PS2CAM_DEVICE_CONFIG *cfg)
 
int PS2CamExtractFrame (int handle, char *buffer, int bufsize)
 

Variables

static int CamInited = 0
 
ee_sema_t compSema
 
int sem
 

Detailed Description

PS2CAM.irx rpc client

Definition in file ps2cam_rpc.c.

Macro Definition Documentation

◆ PS2_CAM_RPC_ID

#define PS2_CAM_RPC_ID   0x00FD000 +2

Definition at line 21 of file ps2cam_rpc.c.

Function Documentation

◆ PS2CamInit()

int PS2CamInit ( int  mode)

Definition at line 37 of file ps2cam_rpc.c.

◆ PS2CamGetIRXVersion()

int PS2CamGetIRXVersion ( void  )

Definition at line 86 of file ps2cam_rpc.c.

◆ PS2CamGetDeviceCount()

int PS2CamGetDeviceCount ( void  )

Definition at line 102 of file ps2cam_rpc.c.

◆ PS2CamOpenDevice()

int PS2CamOpenDevice ( int  device_index)

Definition at line 118 of file ps2cam_rpc.c.

◆ PS2CamCloseDevice()

int PS2CamCloseDevice ( int  handle)

Definition at line 134 of file ps2cam_rpc.c.

◆ PS2CamGetDeviceStatus()

int PS2CamGetDeviceStatus ( int  handle)

Definition at line 151 of file ps2cam_rpc.c.

◆ PS2CamGetDeviceInfo()

int PS2CamGetDeviceInfo ( int  handle,
PS2CAM_DEVICE_INFO info 
)

Definition at line 170 of file ps2cam_rpc.c.

◆ PS2CamSetDeviceBandwidth()

int PS2CamSetDeviceBandwidth ( int  handle,
char  bandwidth 
)

Definition at line 194 of file ps2cam_rpc.c.

◆ PS2CamReadPacket()

int PS2CamReadPacket ( int  handle)

Definition at line 216 of file ps2cam_rpc.c.

◆ PS2CamSetLEDMode()

int PS2CamSetLEDMode ( int  handle,
int  mode 
)

Definition at line 251 of file ps2cam_rpc.c.

◆ PS2CamSetDeviceConfig()

int PS2CamSetDeviceConfig ( int  handle,
PS2CAM_DEVICE_CONFIG cfg 
)

Definition at line 267 of file ps2cam_rpc.c.

◆ PS2CamExtractFrame()

int PS2CamExtractFrame ( int  handle,
char *  buffer,
int  bufsize 
)

Definition at line 284 of file ps2cam_rpc.c.

Variable Documentation

◆ CamInited

int CamInited = 0
static

Definition at line 25 of file ps2cam_rpc.c.

◆ compSema

ee_sema_t compSema

Definition at line 30 of file ps2cam_rpc.c.

◆ sem

int sem

Definition at line 32 of file ps2cam_rpc.c.