sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
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 <iopcontrol.h>
#include "../include/ps2cam_rpc.h"

Go to the source code of this file.

Macros

#define PS2_CAM_RPC_ID   0x00FD000 +2

Functions

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

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 22 of file ps2cam_rpc.c.

Function Documentation

◆ PS2CamCloseDevice()

int PS2CamCloseDevice ( int handle)

close the device if it is no longer needed or disconnected

Definition at line 135 of file ps2cam_rpc.c.

◆ PS2CamExtractFrame()

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

Definition at line 278 of file ps2cam_rpc.c.

◆ PS2CamGetDeviceCount()

int PS2CamGetDeviceCount ( void )

get the number of compatible camera connected

Definition at line 103 of file ps2cam_rpc.c.

◆ PS2CamGetDeviceInfo()

int PS2CamGetDeviceInfo ( int handle,
PS2CAM_DEVICE_INFO * info )

Definition at line 171 of file ps2cam_rpc.c.

◆ PS2CamGetDeviceStatus()

int PS2CamGetDeviceStatus ( int handle)

get the status of the compatible camera

Definition at line 152 of file ps2cam_rpc.c.

◆ PS2CamGetIRXVersion()

int PS2CamGetIRXVersion ( void )

Return the current version of the 'ps2cam.irx'

Definition at line 87 of file ps2cam_rpc.c.

◆ PS2CamInit()

int PS2CamInit ( int mode)

initalize the camera driver. must be called 1st

Definition at line 37 of file ps2cam_rpc.c.

◆ PS2CamOpenDevice()

int PS2CamOpenDevice ( int device_index)

open one of the compatible camera for reading

Definition at line 119 of file ps2cam_rpc.c.

◆ PS2CamReadPacket()

int PS2CamReadPacket ( int handle)

read some data from the camera based on bandwidth

Definition at line 217 of file ps2cam_rpc.c.

◆ PS2CamSetDeviceBandwidth()

int PS2CamSetDeviceBandwidth ( int handle,
char bandwidth )

before reading you must set the camera's bandwidth

Definition at line 195 of file ps2cam_rpc.c.

◆ PS2CamSetDeviceConfig()

int PS2CamSetDeviceConfig ( int handle,
PS2CAM_DEVICE_CONFIG * cfg )

Definition at line 261 of file ps2cam_rpc.c.

◆ PS2CamSetLEDMode()

int PS2CamSetLEDMode ( int handle,
int mode )

set the mode for the red led

Definition at line 245 of file ps2cam_rpc.c.

Variable Documentation

◆ 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.