MIOS32_SPI_MIDI

Defines

#define MIOS32_SPI_MIDI_USE_MUTEX   0
#define MIOS32_SPI_MIDI_MUTEX_TAKE   {}
#define MIOS32_SPI_MIDI_MUTEX_GIVE   {}

Functions

s32 MIOS32_SPI_MIDI_Init (u32 mode)
s32 MIOS32_SPI_MIDI_Enabled (void)
s32 MIOS32_SPI_MIDI_CheckAvailable (u8 spi_midi_port)
s32 MIOS32_SPI_MIDI_Periodic_mS (void)
s32 MIOS32_SPI_MIDI_PackageSend_NonBlocking (mios32_midi_package_t package)
s32 MIOS32_SPI_MIDI_PackageSend (mios32_midi_package_t package)
s32 MIOS32_SPI_MIDI_PackageReceive (mios32_midi_package_t *package)

Detailed Description

SPI MIDI layer for MIOS32

Applications shouldn't call these functions directly, instead please use MIOS32_MIDI layer functions


Define Documentation

#define MIOS32_SPI_MIDI_MUTEX_GIVE   {}
#define MIOS32_SPI_MIDI_MUTEX_TAKE   {}
#define MIOS32_SPI_MIDI_USE_MUTEX   0

Function Documentation

s32 MIOS32_SPI_MIDI_CheckAvailable ( u8  spi_midi_port  ) 

This function checks the availability of a SPI MIDI port as configured with MIOS32_SPI_MIDI_NUM_PORTS

Parameters:
[in] spi_midi_port module number (0..7)
Returns:
1: interface available
0: interface not available
Note:
Applications shouldn't call this function directly, instead please use MIOS32_MIDI layer functions

Here is the call graph for this function:

s32 MIOS32_SPI_MIDI_Enabled ( void   ) 
Returns:
!= 0 if SPI MIDI has been enabled in MIOS32 bootloader
s32 MIOS32_SPI_MIDI_Init ( u32  mode  ) 

Here is the call graph for this function:

s32 MIOS32_SPI_MIDI_PackageReceive ( mios32_midi_package_t package  ) 

This function checks for a new package

Parameters:
[out] package pointer to MIDI package (received package will be put into the given variable)
Returns:
-1 if no package in buffer
>= 0: number of packages which are still in the buffer
Note:
Applications shouldn't call this function directly, instead please use MIOS32_MIDI layer functions

Here is the call graph for this function:

s32 MIOS32_SPI_MIDI_PackageSend ( mios32_midi_package_t  package  ) 

This function puts a new MIDI package into the Tx buffer (blocking function)

Parameters:
[in] package MIDI package
Returns:
0: no error
-1: SPI not configured
Note:
Applications shouldn't call this function directly, instead please use MIOS32_MIDI layer functions

Here is the call graph for this function:

s32 MIOS32_SPI_MIDI_PackageSend_NonBlocking ( mios32_midi_package_t  package  ) 

Here is the call graph for this function:

s32 MIOS32_SPI_MIDI_Periodic_mS ( void   ) 

This function should be called periodically each mS to initiate a new SPI scan

Not for use in an application - this function is called from MIOS32_MIDI_Periodic_mS(), which is called by a task in the programming model!

Returns:
< 0 on errors

Here is the call graph for this function:


Generated on 22 Jan 2016 for MIOS32 by  doxygen 1.6.1