liberis
Functions
pad.h File Reference

Low-level access to FX-PADs. More...

#include <eris/types.h>

Go to the source code of this file.

Functions

void eris_low_pad_init (int pad)
 Initialize a pad.
u16 eris_low_pad_read_status (int pad)
 Read pad status.
u32 eris_low_pad_read_data (int pad)
 Read pad data.
int eris_low_pad_data_ready (int pad)
 Check if pad has data ready.
void eris_low_pad_write_control (int pad, u16 ctl)
 Write pad control.
void eris_low_pad_write_data (int pad, u32 data)
 Write pad data.

Detailed Description

Low-level access to FX-PADs.


Function Documentation

int eris_low_pad_data_ready ( int  pad)

Check if pad has data ready.

Parameters:
padThe pad to check. (0 ~ 1)
Returns:
If there is data ready, returns 1. Otherwise, it returns 0.
void eris_low_pad_init ( int  pad)

Initialize a pad.

Parameters:
padThe pad to initialize. (0 ~ 1)
u32 eris_low_pad_read_data ( int  pad)

Read pad data.

Parameters:
padThe pad to read data from. (0 ~ 1)
Returns:
The pad's data.
u16 eris_low_pad_read_status ( int  pad)

Read pad status.

Parameters:
padThe pad to read the status of. (0 ~ 1)
Returns:
The pad's status.
void eris_low_pad_write_control ( int  pad,
u16  ctl 
)

Write pad control.

Parameters:
padThe pad to write the control of. (0 ~ 1)
ctlThe control data to be written.
void eris_low_pad_write_data ( int  pad,
u32  data 
)

Write pad data.

Parameters:
padThe pad to write data to. (0 ~ 1)
dataThe data to be written.
 All Files Functions Typedefs Enumerations Enumerator Defines