KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
AICA

API defining the SH4/AICA shared interface. More...

Modules

 Channel Commands
 Command values (for aica_channel_t commands)
 
 Channel Start Values
 Start values for AICA channels.
 
 Channel Update Values
 Update values for AICA channels.
 
 Commands
 Values of commands for aica_cmd_t.
 
 Responses
 Values of responses to aica_cmd_t commands.
 
 Sample Types
 Types of samples used by the AICA.
 

Files

file  aica_comm.h
 Shared API for the SH4/AICA interface.
 

Data Structures

struct  aica_queue_t
 SH4-to-AICA command queue. More...
 
struct  aica_cmd_t
 Command queue struct for commanding the AICA from the SH-4. More...
 
struct  aica_channel_t
 AICA command payload data for AICA_CMD_CHAN. More...
 

Macros

#define AICA_CMD_MAX_SIZE   256
 Maximum command size – 256 dwords.
 
#define AICA_CMDSTR_CHANNEL(T, CMDR, CHANR)
 Macro for declaring an aica channel command.
 
#define AICA_CMDSTR_CHANNEL_SIZE   ((sizeof(aica_cmd_t) + sizeof(aica_channel_t))/4)
 Size of an AICA channel command in words.
 

Detailed Description

API defining the SH4/AICA shared interface.

Macro Definition Documentation

◆ AICA_CMD_MAX_SIZE

#define AICA_CMD_MAX_SIZE   256

Maximum command size – 256 dwords.

◆ AICA_CMDSTR_CHANNEL

#define AICA_CMDSTR_CHANNEL (   T,
  CMDR,
  CHANR 
)
Value:
uint8 T[sizeof(aica_cmd_t) + sizeof(aica_channel_t)]; \
aica_cmd_t * CMDR = (aica_cmd_t *)T; \
aica_channel_t * CHANR = (aica_channel_t *)(CMDR->cmd_data);
unsigned char uint8
8-bit unsigned integer
Definition types.h:35
AICA command payload data for AICA_CMD_CHAN.
Definition aica_comm.h:68
Command queue struct for commanding the AICA from the SH-4.
Definition aica_comm.h:51
uint8 cmd_data[]
Command data.
Definition aica_comm.h:57

Macro for declaring an aica channel command.

Declare an aica_cmd_t big enough to hold an aica_channel_t using temp name T, aica_cmd_t name CMDR, and aica_channel_t name CHANR

Parameters
TBuffer name
CMDRaica_cmd_t pointer name
CHANRaica_channel_t pointer name

◆ AICA_CMDSTR_CHANNEL_SIZE

#define AICA_CMDSTR_CHANNEL_SIZE   ((sizeof(aica_cmd_t) + sizeof(aica_channel_t))/4)

Size of an AICA channel command in words.