modules/opl3/opl3.h File Reference

Data Structures

union  opl3_operator_t
union  opl3_channel_t
union  opl3_chip_t

Defines

#define OPL3_COUNT   1
#define OPL3_RS_PORT   GPIOB
#define OPL3_RS_PIN   GPIO_Pin_8
#define OPL3_CS_PINS   {13}
#define OPL3_CS_MASKS   {1<<5}

Functions

s32 OPL3_Init (void)
s32 OPL3_Reset (void)
s32 OPL3_RefreshAll (void)
void OPL3_SendDemoPatch (void)
s32 OPL3_OnFrame (void)
s32 OPL3_SetFMult (u8 op, u8 value)
s32 OPL3_SetWaveform (u8 op, u8 value)
s32 OPL3_SetVibrato (u8 op, u8 value)
s32 OPL3_SetVolume (u8 op, u8 value)
s32 OPL3_SetTremelo (u8 op, u8 value)
s32 OPL3_SetKSL (u8 op, u8 value)
s32 OPL3_SetAttack (u8 op, u8 value)
s32 OPL3_SetDecay (u8 op, u8 value)
s32 OPL3_DoSustain (u8 op, u8 value)
s32 OPL3_SetSustain (u8 op, u8 value)
s32 OPL3_SetRelease (u8 op, u8 value)
s32 OPL3_SetKSR (u8 op, u8 value)
s32 OPL3_Gate (u8 chan, u8 value)
s32 OPL3_SetFrequency (u8 chan, u16 fnum, u8 block)
s32 OPL3_SetFeedback (u8 chan, u8 value)
s32 OPL3_SetAlgorithm (u8 chan, u8 value)
s32 OPL3_OutLeft (u8 chan, u8 value)
s32 OPL3_OutRight (u8 chan, u8 value)
s32 OPL3_Out3 (u8 chan, u8 value)
s32 OPL3_Out4 (u8 chan, u8 value)
s32 OPL3_SetDest (u8 chan, u8 value)
s32 OPL3_SetFourOp (u8 chan, u8 value)
s32 OPL3_SetOpl3Mode (u8 chip, u8 value)
s32 OPL3_SetNoteSel (u8 chip, u8 value)
s32 OPL3_SetCSW (u8 chip, u8 value)
s32 OPL3_SetVibratoDepth (u8 chip, u8 value)
s32 OPL3_SetTremeloDepth (u8 chip, u8 value)
s32 OPL3_SetPercussionMode (u8 chip, u8 value)
s32 OPL3_TriggerBD (u8 chip, u8 value)
s32 OPL3_TriggerSD (u8 chip, u8 value)
s32 OPL3_TriggerTT (u8 chip, u8 value)
s32 OPL3_TriggerHH (u8 chip, u8 value)
s32 OPL3_TriggerCY (u8 chip, u8 value)
u8 OPL3_IsChannel4Op (u8 chan)
u8 OPL3_IsChannelPerc (u8 chan)
u8 OPL3_IsOperatorCarrier (u8 op)
u8 OPL3_GetAlgorithm (u8 chan)

Variables

opl3_operator_t opl3_operators [36 *OPL3_COUNT]
opl3_channel_t opl3_channels [18 *OPL3_COUNT]
opl3_chip_t opl3_chip [OPL3_COUNT]

Define Documentation

#define OPL3_COUNT   1
#define OPL3_CS_MASKS   {1<<5}
#define OPL3_CS_PINS   {13}
#define OPL3_RS_PIN   GPIO_Pin_8
#define OPL3_RS_PORT   GPIOB

Function Documentation

s32 OPL3_DoSustain ( u8  op,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_Gate ( u8  chan,
u8  value 
)

Here is the call graph for this function:

u8 OPL3_GetAlgorithm ( u8  chan  ) 

Here is the call graph for this function:

s32 OPL3_Init ( void   ) 

Here is the call graph for this function:

u8 OPL3_IsChannel4Op ( u8  chan  ) 

Here is the call graph for this function:

u8 OPL3_IsChannelPerc ( u8  chan  ) 
u8 OPL3_IsOperatorCarrier ( u8  op  ) 

Here is the call graph for this function:

s32 OPL3_OnFrame ( void   ) 

Here is the call graph for this function:

s32 OPL3_Out3 ( u8  chan,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_Out4 ( u8  chan,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_OutLeft ( u8  chan,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_OutRight ( u8  chan,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_RefreshAll ( void   ) 

Here is the call graph for this function:

s32 OPL3_Reset ( void   ) 

Here is the call graph for this function:

void OPL3_SendDemoPatch ( void   ) 

Here is the call graph for this function:

s32 OPL3_SetAlgorithm ( u8  chan,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetAttack ( u8  op,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetCSW ( u8  chip,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetDecay ( u8  op,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetDest ( u8  chan,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetFeedback ( u8  chan,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetFMult ( u8  op,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetFourOp ( u8  chan,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetFrequency ( u8  chan,
u16  fnum,
u8  block 
)

Here is the call graph for this function:

s32 OPL3_SetKSL ( u8  op,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetKSR ( u8  op,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetNoteSel ( u8  chip,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetOpl3Mode ( u8  chip,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetPercussionMode ( u8  chip,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetRelease ( u8  op,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetSustain ( u8  op,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetTremelo ( u8  op,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetTremeloDepth ( u8  chip,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetVibrato ( u8  op,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetVibratoDepth ( u8  chip,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetVolume ( u8  op,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_SetWaveform ( u8  op,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_TriggerBD ( u8  chip,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_TriggerCY ( u8  chip,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_TriggerHH ( u8  chip,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_TriggerSD ( u8  chip,
u8  value 
)

Here is the call graph for this function:

s32 OPL3_TriggerTT ( u8  chip,
u8  value 
)

Here is the call graph for this function:


Variable Documentation

opl3_channel_t opl3_channels[18 *OPL3_COUNT]
opl3_chip_t opl3_chip[OPL3_COUNT]

Generated on 22 Jan 2016 for MIOS32 by  doxygen 1.6.1