sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
librm.c File Reference
#include <stdio.h>
#include <tamtypes.h>
#include <sifrpc.h>
#include <kernel.h>
#include <string.h>
#include <iopcontrol.h>
#include "librm.h"

Go to the source code of this file.

Classes

struct  port_state

Functions

int RMMan_Init (void)
 Initialise librm.
u32 RMMan_GetModuleVersion (void)
 Returns the rmman.irx version.
int RMMan_Open (int port, int slot, void *pData)
int RMMan_End (void)
 Ends all remote communication.
int RMMan_Close (int port, int slot)
 Closes an opened port.
void RMMan_Read (int port, int slot, struct remote_data *data)
 Read remote data.

Detailed Description

RPC Interface for PS2 Remote Control Driver (RMMAN)

Definition in file librm.c.

Function Documentation

◆ RMMan_Close()

int RMMan_Close ( int port,
int slot )

Closes an opened port.

Parameters
portPort to close
slotSlot to close
Returns
!= 0 => OK

Definition at line 256 of file librm.c.

◆ RMMan_End()

int RMMan_End ( void )

Ends all remote communication.

Returns
== 1 => OK

Definition at line 236 of file librm.c.

◆ RMMan_GetModuleVersion()

u32 RMMan_GetModuleVersion ( void )

Returns the rmman.irx version.

Definition at line 157 of file librm.c.

◆ RMMan_Init()

int RMMan_Init ( void )

Initialise librm.

Returns
== 1 => OK

Definition at line 61 of file librm.c.

◆ RMMan_Open()

int RMMan_Open ( int port,
int slot,
void * pData )
Parameters
[in]portPort number to open (0 or 1)
[in]slotSlot to open (0 or 1: multitap not supported)
[out]pDataThe address of the buffer for storing the pad status. Must be a 256-byte region (2xsizeof(struct pad_data). Must be a 64-byte aligned address.
Returns
!= 0 => OK

Definition at line 177 of file librm.c.

◆ RMMan_Read()

void RMMan_Read ( int port,
int slot,
struct remote_data * data )

Read remote data.

Parameters
[in]portPort number to get the status for.
[in]slotSlot number to get the status for.
[out]dataA pointer to a 32 byte array where the result is stored
Returns
!= 0 => OK

Definition at line 305 of file librm.c.