Subversion Repositories svn.mios

Rev

Blame | Last modification | View Log | RSS feed

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
<META HTTP-EQUIV="Keywords"     CONTENT="uCApps, MIDIbox, MIOS, MIDI, Music, Microcontroller, PIC, Hardware, Software, Schematics, Firmware, DIY, SID, OPL3, Sequencer, Controller">
<META NAME="Description" CONTENT="free MIDI DIY Stuff">
<META NAME="Author" CONTENT="Thorsten Klose">
<TITLE> MIOS Functions Reference (ASM Version) </TITLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="standard.css">
<LINK REL="alternate" TYPE="application/rss+xml" HREF="http://www.ucapps.de/rss.xml" TITLE="uCApps.de ChangeLog" />
</HEAD>

<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000066" alink="#0000ff">

<TABLE width=672 border=0 cellpadding=10 cellspacing=0>
  <TR>
    <TD>
      <TABLE border=0 cellpadding=0>
        <TR>
          <TD width=600>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if( parent.location.href == self.location.href ) {
 document.write("<P CLASS=INFO><A HREF=\"index.html?page=mios_fun.html\">Click here to display the navigation bar</A>");
}
//  End -->
</SCRIPT>
<HR>
<!-- HEADER 3 MIOS Functions Reference (ASM Version) -->
<A NAME="top">
<CENTER><H1>MIOS Functions Reference (ASM Version)</H1></CENTER>
<IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
<P CLASS=DESC><A HREF="cmios_fun.html">Click here for C version</A>
<IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
<UL CLASS=CL>
  <LI>Class: <B>MIOS_MIDI</B>
    <UL>
      <LI><A NAME="back_MIOS_MIDI_BeginStream"><A HREF="#MIOS_MIDI_BeginStream">MIOS_MIDI_BeginStream</A></LI>
      <LI><A NAME="back_MIOS_MIDI_DeviceIDAutoSet"><A HREF="#MIOS_MIDI_DeviceIDAutoSet">MIOS_MIDI_DeviceIDAutoSet</A></LI>
      <LI><A NAME="back_MIOS_MIDI_DeviceIDGet"><A HREF="#MIOS_MIDI_DeviceIDGet">MIOS_MIDI_DeviceIDGet</A></LI>
      <LI><A NAME="back_MIOS_MIDI_DeviceIDSet"><A HREF="#MIOS_MIDI_DeviceIDSet">MIOS_MIDI_DeviceIDSet</A></LI>
      <LI><A NAME="back_MIOS_MIDI_EndStream"><A HREF="#MIOS_MIDI_EndStream">MIOS_MIDI_EndStream</A></LI>
      <LI><A NAME="back_MIOS_MIDI_Init"><A HREF="#MIOS_MIDI_Init">MIOS_MIDI_Init</A></LI>
      <LI><A NAME="back_MIOS_MIDI_InterfaceAutoSet"><A HREF="#MIOS_MIDI_InterfaceAutoSet">MIOS_MIDI_InterfaceAutoSet</A></LI>
      <LI><A NAME="back_MIOS_MIDI_InterfaceGet"><A HREF="#MIOS_MIDI_InterfaceGet">MIOS_MIDI_InterfaceGet</A></LI>
      <LI><A NAME="back_MIOS_MIDI_InterfaceSet"><A HREF="#MIOS_MIDI_InterfaceSet">MIOS_MIDI_InterfaceSet</A></LI>
      <LI><A NAME="back_MIOS_MIDI_MergerGet"><A HREF="#MIOS_MIDI_MergerGet">MIOS_MIDI_MergerGet</A></LI>
      <LI><A NAME="back_MIOS_MIDI_MergerSet"><A HREF="#MIOS_MIDI_MergerSet">MIOS_MIDI_MergerSet</A></LI>
      <LI><A NAME="back_MIOS_MIDI_RxBufferFree"><A HREF="#MIOS_MIDI_RxBufferFree">MIOS_MIDI_RxBufferFree</A></LI>
      <LI><A NAME="back_MIOS_MIDI_RxBufferGet"><A HREF="#MIOS_MIDI_RxBufferGet">MIOS_MIDI_RxBufferGet</A></LI>
      <LI><A NAME="back_MIOS_MIDI_RxBufferPut"><A HREF="#MIOS_MIDI_RxBufferPut">MIOS_MIDI_RxBufferPut</A></LI>
      <LI><A NAME="back_MIOS_MIDI_RxBufferUsed"><A HREF="#MIOS_MIDI_RxBufferUsed">MIOS_MIDI_RxBufferUsed</A></LI>
      <LI><A NAME="back_MIOS_MIDI_TxBufferFlush"><A HREF="#MIOS_MIDI_TxBufferFlush">MIOS_MIDI_TxBufferFlush</A></LI>
      <LI><A NAME="back_MIOS_MIDI_TxBufferFree"><A HREF="#MIOS_MIDI_TxBufferFree">MIOS_MIDI_TxBufferFree</A></LI>
      <LI><A NAME="back_MIOS_MIDI_TxBufferGet"><A HREF="#MIOS_MIDI_TxBufferGet">MIOS_MIDI_TxBufferGet</A></LI>
      <LI><A NAME="back_MIOS_MIDI_TxBufferPut"><A HREF="#MIOS_MIDI_TxBufferPut">MIOS_MIDI_TxBufferPut</A></LI>
      <LI><A NAME="back_MIOS_MIDI_TxBufferUsed"><A HREF="#MIOS_MIDI_TxBufferUsed">MIOS_MIDI_TxBufferUsed</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_MPROC</B>
    <UL>
      <LI><A NAME="back_MIOS_MPROC_MergerDisable"><A HREF="#MIOS_MPROC_MergerDisable">MIOS_MPROC_MergerDisable</A></LI>
      <LI><A NAME="back_MIOS_MPROC_MergerEnable"><A HREF="#MIOS_MPROC_MergerEnable">MIOS_MPROC_MergerEnable</A></LI>
      <LI><A NAME="back_MIOS_MPROC_MergerGet"><A HREF="#MIOS_MPROC_MergerGet">MIOS_MPROC_MergerGet</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_AIN</B>
    <UL>
      <LI><A NAME="back_MIOS_AIN_DeadbandGet"><A HREF="#MIOS_AIN_DeadbandGet">MIOS_AIN_DeadbandGet</A></LI>
      <LI><A NAME="back_MIOS_AIN_DeadbandSet"><A HREF="#MIOS_AIN_DeadbandSet">MIOS_AIN_DeadbandSet</A></LI>
      <LI><A NAME="back_MIOS_AIN_DynamicPrioGet"><A HREF="#MIOS_AIN_DynamicPrioGet">MIOS_AIN_DynamicPrioGet</A></LI>
      <LI><A NAME="back_MIOS_AIN_DynamicPrioSet"><A HREF="#MIOS_AIN_DynamicPrioSet">MIOS_AIN_DynamicPrioSet</A></LI>
      <LI><A NAME="back_MIOS_AIN_LastPinsGet"><A HREF="#MIOS_AIN_LastPinsGet">MIOS_AIN_LastPinsGet</A></LI>
      <LI><A NAME="back_MIOS_AIN_Muxed"><A HREF="#MIOS_AIN_Muxed">MIOS_AIN_Muxed</A></LI>
      <LI><A NAME="back_MIOS_AIN_NumberGet"><A HREF="#MIOS_AIN_NumberGet">MIOS_AIN_NumberGet</A></LI>
      <LI><A NAME="back_MIOS_AIN_NumberSet"><A HREF="#MIOS_AIN_NumberSet">MIOS_AIN_NumberSet</A></LI>
      <LI><A NAME="back_MIOS_AIN_Pin7bitGet"><A HREF="#MIOS_AIN_Pin7bitGet">MIOS_AIN_Pin7bitGet</A></LI>
      <LI><A NAME="back_MIOS_AIN_PinGet"><A HREF="#MIOS_AIN_PinGet">MIOS_AIN_PinGet</A></LI>
      <LI><A NAME="back_MIOS_AIN_PinLSBGet"><A HREF="#MIOS_AIN_PinLSBGet">MIOS_AIN_PinLSBGet</A></LI>
      <LI><A NAME="back_MIOS_AIN_PinMSBGet"><A HREF="#MIOS_AIN_PinMSBGet">MIOS_AIN_PinMSBGet</A></LI>
      <LI><A NAME="back_MIOS_AIN_UnMuxed"><A HREF="#MIOS_AIN_UnMuxed">MIOS_AIN_UnMuxed</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_MF</B>
    <UL>
      <LI><A NAME="back_MIOS_MF_DeadbandGet"><A HREF="#MIOS_MF_DeadbandGet">MIOS_MF_DeadbandGet</A></LI>
      <LI><A NAME="back_MIOS_MF_DeadbandSet"><A HREF="#MIOS_MF_DeadbandSet">MIOS_MF_DeadbandSet</A></LI>
      <LI><A NAME="back_MIOS_MF_Disable"><A HREF="#MIOS_MF_Disable">MIOS_MF_Disable</A></LI>
      <LI><A NAME="back_MIOS_MF_Enable"><A HREF="#MIOS_MF_Enable">MIOS_MF_Enable</A></LI>
      <LI><A NAME="back_MIOS_MF_FaderMove"><A HREF="#MIOS_MF_FaderMove">MIOS_MF_FaderMove</A></LI>
      <LI><A NAME="back_MIOS_MF_PWM_DutyCycleDownGet"><A HREF="#MIOS_MF_PWM_DutyCycleDownGet">MIOS_MF_PWM_DutyCycleDownGet</A></LI>
      <LI><A NAME="back_MIOS_MF_PWM_DutyCycleDownSet"><A HREF="#MIOS_MF_PWM_DutyCycleDownSet">MIOS_MF_PWM_DutyCycleDownSet</A></LI>
      <LI><A NAME="back_MIOS_MF_PWM_DutyCycleUpGet"><A HREF="#MIOS_MF_PWM_DutyCycleUpGet">MIOS_MF_PWM_DutyCycleUpGet</A></LI>
      <LI><A NAME="back_MIOS_MF_PWM_DutyCycleUpSet"><A HREF="#MIOS_MF_PWM_DutyCycleUpSet">MIOS_MF_PWM_DutyCycleUpSet</A></LI>
      <LI><A NAME="back_MIOS_MF_PWM_PeriodGet"><A HREF="#MIOS_MF_PWM_PeriodGet">MIOS_MF_PWM_PeriodGet</A></LI>
      <LI><A NAME="back_MIOS_MF_PWM_PeriodSet"><A HREF="#MIOS_MF_PWM_PeriodSet">MIOS_MF_PWM_PeriodSet</A></LI>
      <LI><A NAME="back_MIOS_MF_SuspendDisable"><A HREF="#MIOS_MF_SuspendDisable">MIOS_MF_SuspendDisable</A></LI>
      <LI><A NAME="back_MIOS_MF_SuspendEnable"><A HREF="#MIOS_MF_SuspendEnable">MIOS_MF_SuspendEnable</A></LI>
      <LI><A NAME="back_MIOS_MF_SuspendGet"><A HREF="#MIOS_MF_SuspendGet">MIOS_MF_SuspendGet</A></LI>
      <LI><A NAME="back_MIOS_MF_TouchDetectionReset"><A HREF="#MIOS_MF_TouchDetectionReset">MIOS_MF_TouchDetectionReset</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_DIN</B>
    <UL>
      <LI><A NAME="back_MIOS_DIN_PinAutoRepeatDisable"><A HREF="#MIOS_DIN_PinAutoRepeatDisable">MIOS_DIN_PinAutoRepeatDisable</A></LI>
      <LI><A NAME="back_MIOS_DIN_PinAutoRepeatEnable"><A HREF="#MIOS_DIN_PinAutoRepeatEnable">MIOS_DIN_PinAutoRepeatEnable</A></LI>
      <LI><A NAME="back_MIOS_DIN_PinAutoRepeatGet"><A HREF="#MIOS_DIN_PinAutoRepeatGet">MIOS_DIN_PinAutoRepeatGet</A></LI>
      <LI><A NAME="back_MIOS_DIN_PinGet"><A HREF="#MIOS_DIN_PinGet">MIOS_DIN_PinGet</A></LI>
      <LI><A NAME="back_MIOS_DIN_SRGet"><A HREF="#MIOS_DIN_SRGet">MIOS_DIN_SRGet</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_DOUT</B>
    <UL>
      <LI><A NAME="back_MIOS_DOUT_PinGet"><A HREF="#MIOS_DOUT_PinGet">MIOS_DOUT_PinGet</A></LI>
      <LI><A NAME="back_MIOS_DOUT_PinSet"><A HREF="#MIOS_DOUT_PinSet">MIOS_DOUT_PinSet</A></LI>
      <LI><A NAME="back_MIOS_DOUT_PinSet0"><A HREF="#MIOS_DOUT_PinSet0">MIOS_DOUT_PinSet0</A></LI>
      <LI><A NAME="back_MIOS_DOUT_PinSet1"><A HREF="#MIOS_DOUT_PinSet1">MIOS_DOUT_PinSet1</A></LI>
      <LI><A NAME="back_MIOS_DOUT_SRGet"><A HREF="#MIOS_DOUT_SRGet">MIOS_DOUT_SRGet</A></LI>
      <LI><A NAME="back_MIOS_DOUT_SRSet"><A HREF="#MIOS_DOUT_SRSet">MIOS_DOUT_SRSet</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_ENC</B>
    <UL>
      <LI><A NAME="back_MIOS_ENC_Abs7bitAdd"><A HREF="#MIOS_ENC_Abs7bitAdd">MIOS_ENC_Abs7bitAdd</A></LI>
      <LI><A NAME="back_MIOS_ENC_Abs7bitGet"><A HREF="#MIOS_ENC_Abs7bitGet">MIOS_ENC_Abs7bitGet</A></LI>
      <LI><A NAME="back_MIOS_ENC_Abs7bitSet"><A HREF="#MIOS_ENC_Abs7bitSet">MIOS_ENC_Abs7bitSet</A></LI>
      <LI><A NAME="back_MIOS_ENC_NumberGet"><A HREF="#MIOS_ENC_NumberGet">MIOS_ENC_NumberGet</A></LI>
      <LI><A NAME="back_MIOS_ENC_SpeedGet"><A HREF="#MIOS_ENC_SpeedGet">MIOS_ENC_SpeedGet</A></LI>
      <LI><A NAME="back_MIOS_ENC_SpeedSet"><A HREF="#MIOS_ENC_SpeedSet">MIOS_ENC_SpeedSet</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_SRIO</B>
    <UL>
      <LI><A NAME="back_MIOS_SRIO_DebounceGet"><A HREF="#MIOS_SRIO_DebounceGet">MIOS_SRIO_DebounceGet</A></LI>
      <LI><A NAME="back_MIOS_SRIO_DebounceSet"><A HREF="#MIOS_SRIO_DebounceSet">MIOS_SRIO_DebounceSet</A></LI>
      <LI><A NAME="back_MIOS_SRIO_NumberGet"><A HREF="#MIOS_SRIO_NumberGet">MIOS_SRIO_NumberGet</A></LI>
      <LI><A NAME="back_MIOS_SRIO_NumberSet"><A HREF="#MIOS_SRIO_NumberSet">MIOS_SRIO_NumberSet</A></LI>
      <LI><A NAME="back_MIOS_SRIO_TS_SensitivityGet"><A HREF="#MIOS_SRIO_TS_SensitivityGet">MIOS_SRIO_TS_SensitivityGet</A></LI>
      <LI><A NAME="back_MIOS_SRIO_TS_SensitivitySet"><A HREF="#MIOS_SRIO_TS_SensitivitySet">MIOS_SRIO_TS_SensitivitySet</A></LI>
      <LI><A NAME="back_MIOS_SRIO_UpdateFrqGet"><A HREF="#MIOS_SRIO_UpdateFrqGet">MIOS_SRIO_UpdateFrqGet</A></LI>
      <LI><A NAME="back_MIOS_SRIO_UpdateFrqSet"><A HREF="#MIOS_SRIO_UpdateFrqSet">MIOS_SRIO_UpdateFrqSet</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_LCD</B>
    <UL>
      <LI><A NAME="back_MIOS_LCD_Clear"><A HREF="#MIOS_LCD_Clear">MIOS_LCD_Clear</A></LI>
      <LI><A NAME="back_MIOS_LCD_Cmd"><A HREF="#MIOS_LCD_Cmd">MIOS_LCD_Cmd</A></LI>
      <LI><A NAME="back_MIOS_LCD_CursorGet"><A HREF="#MIOS_LCD_CursorGet">MIOS_LCD_CursorGet</A></LI>
      <LI><A NAME="back_MIOS_LCD_CursorSet"><A HREF="#MIOS_LCD_CursorSet">MIOS_LCD_CursorSet</A></LI>
      <LI><A NAME="back_MIOS_LCD_Data"><A HREF="#MIOS_LCD_Data">MIOS_LCD_Data</A></LI>
      <LI><A NAME="back_MIOS_LCD_Init"><A HREF="#MIOS_LCD_Init">MIOS_LCD_Init</A></LI>
      <LI><A NAME="back_MIOS_LCD_MessageStart"><A HREF="#MIOS_LCD_MessageStart">MIOS_LCD_MessageStart</A></LI>
      <LI><A NAME="back_MIOS_LCD_MessageStop"><A HREF="#MIOS_LCD_MessageStop">MIOS_LCD_MessageStop</A></LI>
      <LI><A NAME="back_MIOS_LCD_PrintBCD1"><A HREF="#MIOS_LCD_PrintBCD1">MIOS_LCD_PrintBCD1</A></LI>
      <LI><A NAME="back_MIOS_LCD_PrintBCD2"><A HREF="#MIOS_LCD_PrintBCD2">MIOS_LCD_PrintBCD2</A></LI>
      <LI><A NAME="back_MIOS_LCD_PrintBCD3"><A HREF="#MIOS_LCD_PrintBCD3">MIOS_LCD_PrintBCD3</A></LI>
      <LI><A NAME="back_MIOS_LCD_PrintBCD4"><A HREF="#MIOS_LCD_PrintBCD4">MIOS_LCD_PrintBCD4</A></LI>
      <LI><A NAME="back_MIOS_LCD_PrintBCD5"><A HREF="#MIOS_LCD_PrintBCD5">MIOS_LCD_PrintBCD5</A></LI>
      <LI><A NAME="back_MIOS_LCD_PrintCString"><A HREF="#MIOS_LCD_PrintCString">MIOS_LCD_PrintCString</A></LI>
      <LI><A NAME="back_MIOS_LCD_PrintChar"><A HREF="#MIOS_LCD_PrintChar">MIOS_LCD_PrintChar</A></LI>
      <LI><A NAME="back_MIOS_LCD_PrintHex1"><A HREF="#MIOS_LCD_PrintHex1">MIOS_LCD_PrintHex1</A></LI>
      <LI><A NAME="back_MIOS_LCD_PrintHex2"><A HREF="#MIOS_LCD_PrintHex2">MIOS_LCD_PrintHex2</A></LI>
      <LI><A NAME="back_MIOS_LCD_PrintMessage"><A HREF="#MIOS_LCD_PrintMessage">MIOS_LCD_PrintMessage</A></LI>
      <LI><A NAME="back_MIOS_LCD_PrintPreconfString"><A HREF="#MIOS_LCD_PrintPreconfString">MIOS_LCD_PrintPreconfString</A></LI>
      <LI><A NAME="back_MIOS_LCD_PrintString"><A HREF="#MIOS_LCD_PrintString">MIOS_LCD_PrintString</A></LI>
      <LI><A NAME="back_MIOS_LCD_TypeAutoSet"><A HREF="#MIOS_LCD_TypeAutoSet">MIOS_LCD_TypeAutoSet</A></LI>
      <LI><A NAME="back_MIOS_LCD_TypeGet"><A HREF="#MIOS_LCD_TypeGet">MIOS_LCD_TypeGet</A></LI>
      <LI><A NAME="back_MIOS_LCD_TypeSet"><A HREF="#MIOS_LCD_TypeSet">MIOS_LCD_TypeSet</A></LI>
      <LI><A NAME="back_MIOS_LCD_YAddressGet"><A HREF="#MIOS_LCD_YAddressGet">MIOS_LCD_YAddressGet</A></LI>
      <LI><A NAME="back_MIOS_LCD_YAddressSet"><A HREF="#MIOS_LCD_YAddressSet">MIOS_LCD_YAddressSet</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_CLCD</B>
    <UL>
      <LI><A NAME="back_MIOS_CLCD_SpecialCharInit"><A HREF="#MIOS_CLCD_SpecialCharInit">MIOS_CLCD_SpecialCharInit</A></LI>
      <LI><A NAME="back_MIOS_CLCD_SpecialCharsInit"><A HREF="#MIOS_CLCD_SpecialCharsInit">MIOS_CLCD_SpecialCharsInit</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_GLCD</B>
    <UL>
      <LI><A NAME="back_MIOS_GLCD_FontInit"><A HREF="#MIOS_GLCD_FontInit">MIOS_GLCD_FontInit</A></LI>
      <LI><A NAME="back_MIOS_GLCD_GCursorGet"><A HREF="#MIOS_GLCD_GCursorGet">MIOS_GLCD_GCursorGet</A></LI>
      <LI><A NAME="back_MIOS_GLCD_GCursorSet"><A HREF="#MIOS_GLCD_GCursorSet">MIOS_GLCD_GCursorSet</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_EEPROM</B>
    <UL>
      <LI><A NAME="back_MIOS_EEPROM_Read"><A HREF="#MIOS_EEPROM_Read">MIOS_EEPROM_Read</A></LI>
      <LI><A NAME="back_MIOS_EEPROM_ReadPage"><A HREF="#MIOS_EEPROM_ReadPage">MIOS_EEPROM_ReadPage</A></LI>
      <LI><A NAME="back_MIOS_EEPROM_Write"><A HREF="#MIOS_EEPROM_Write">MIOS_EEPROM_Write</A></LI>
      <LI><A NAME="back_MIOS_EEPROM_WritePage"><A HREF="#MIOS_EEPROM_WritePage">MIOS_EEPROM_WritePage</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_FLASH</B>
    <UL>
      <LI><A NAME="back_MIOS_FLASH_Read"><A HREF="#MIOS_FLASH_Read">MIOS_FLASH_Read</A></LI>
      <LI><A NAME="back_MIOS_FLASH_Write"><A HREF="#MIOS_FLASH_Write">MIOS_FLASH_Write</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_BANKSTICK</B>
    <UL>
      <LI><A NAME="back_MIOS_BANKSTICK_CtrlGet"><A HREF="#MIOS_BANKSTICK_CtrlGet">MIOS_BANKSTICK_CtrlGet</A></LI>
      <LI><A NAME="back_MIOS_BANKSTICK_CtrlSet"><A HREF="#MIOS_BANKSTICK_CtrlSet">MIOS_BANKSTICK_CtrlSet</A></LI>
      <LI><A NAME="back_MIOS_BANKSTICK_Read"><A HREF="#MIOS_BANKSTICK_Read">MIOS_BANKSTICK_Read</A></LI>
      <LI><A NAME="back_MIOS_BANKSTICK_ReadPage"><A HREF="#MIOS_BANKSTICK_ReadPage">MIOS_BANKSTICK_ReadPage</A></LI>
      <LI><A NAME="back_MIOS_BANKSTICK_Write"><A HREF="#MIOS_BANKSTICK_Write">MIOS_BANKSTICK_Write</A></LI>
      <LI><A NAME="back_MIOS_BANKSTICK_WritePage"><A HREF="#MIOS_BANKSTICK_WritePage">MIOS_BANKSTICK_WritePage</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_IIC</B>
    <UL>
      <LI><A NAME="back_MIOS_IIC_AckSend"><A HREF="#MIOS_IIC_AckSend">MIOS_IIC_AckSend</A></LI>
      <LI><A NAME="back_MIOS_IIC_ByteReceive"><A HREF="#MIOS_IIC_ByteReceive">MIOS_IIC_ByteReceive</A></LI>
      <LI><A NAME="back_MIOS_IIC_ByteSend"><A HREF="#MIOS_IIC_ByteSend">MIOS_IIC_ByteSend</A></LI>
      <LI><A NAME="back_MIOS_IIC_CtrlGet"><A HREF="#MIOS_IIC_CtrlGet">MIOS_IIC_CtrlGet</A></LI>
      <LI><A NAME="back_MIOS_IIC_CtrlSet"><A HREF="#MIOS_IIC_CtrlSet">MIOS_IIC_CtrlSet</A></LI>
      <LI><A NAME="back_MIOS_IIC_NakSend"><A HREF="#MIOS_IIC_NakSend">MIOS_IIC_NakSend</A></LI>
      <LI><A NAME="back_MIOS_IIC_Start"><A HREF="#MIOS_IIC_Start">MIOS_IIC_Start</A></LI>
      <LI><A NAME="back_MIOS_IIC_Stop"><A HREF="#MIOS_IIC_Stop">MIOS_IIC_Stop</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_TIMER</B>
    <UL>
      <LI><A NAME="back_MIOS_TIMER_Init"><A HREF="#MIOS_TIMER_Init">MIOS_TIMER_Init</A></LI>
      <LI><A NAME="back_MIOS_TIMER_ReInit"><A HREF="#MIOS_TIMER_ReInit">MIOS_TIMER_ReInit</A></LI>
      <LI><A NAME="back_MIOS_TIMER_Start"><A HREF="#MIOS_TIMER_Start">MIOS_TIMER_Start</A></LI>
      <LI><A NAME="back_MIOS_TIMER_Stop"><A HREF="#MIOS_TIMER_Stop">MIOS_TIMER_Stop</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS_HLP</B>
    <UL>
      <LI><A NAME="back_MIOS_HLP_16bitAddSaturate"><A HREF="#MIOS_HLP_16bitAddSaturate">MIOS_HLP_16bitAddSaturate</A></LI>
      <LI><A NAME="back_MIOS_HLP_AddressFromTable"><A HREF="#MIOS_HLP_AddressFromTable">MIOS_HLP_AddressFromTable</A></LI>
      <LI><A NAME="back_MIOS_HLP_Dec2BCD"><A HREF="#MIOS_HLP_Dec2BCD">MIOS_HLP_Dec2BCD</A></LI>
      <LI><A NAME="back_MIOS_HLP_GetBitANDMask"><A HREF="#MIOS_HLP_GetBitANDMask">MIOS_HLP_GetBitANDMask</A></LI>
      <LI><A NAME="back_MIOS_HLP_GetBitORMask"><A HREF="#MIOS_HLP_GetBitORMask">MIOS_HLP_GetBitORMask</A></LI>
      <LI><A NAME="back_MIOS_HLP_GetIndex_2bytes"><A HREF="#MIOS_HLP_GetIndex_2bytes">MIOS_HLP_GetIndex_2bytes</A></LI>
      <LI><A NAME="back_MIOS_HLP_GetIndex_4bytes"><A HREF="#MIOS_HLP_GetIndex_4bytes">MIOS_HLP_GetIndex_4bytes</A></LI>
      <LI><A NAME="back_MIOS_HLP_IndirectJump"><A HREF="#MIOS_HLP_IndirectJump">MIOS_HLP_IndirectJump</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>MIOS</B>
    <UL>
      <LI><A NAME="back_MIOS_Delay"><A HREF="#MIOS_Delay">MIOS_Delay</A></LI>
      <LI><A NAME="back_MIOS_GPCounterGet"><A HREF="#MIOS_GPCounterGet">MIOS_GPCounterGet</A></LI>
      <LI><A NAME="back_MIOS_Reset"><A HREF="#MIOS_Reset">MIOS_Reset</A></LI>
      <LI><A NAME="back_MIOS_SystemResume"><A HREF="#MIOS_SystemResume">MIOS_SystemResume</A></LI>
      <LI><A NAME="back_MIOS_SystemSuspend"><A HREF="#MIOS_SystemSuspend">MIOS_SystemSuspend</A></LI>
      <LI><A NAME="back_MIOS_UserResume"><A HREF="#MIOS_UserResume">MIOS_UserResume</A></LI>
      <LI><A NAME="back_MIOS_UserSuspend"><A HREF="#MIOS_UserSuspend">MIOS_UserSuspend</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
  <LI>Class: <B>USER</B>
    <UL>
      <LI><A NAME="back_USER_AIN_NotifyChange"><A HREF="#USER_AIN_NotifyChange">USER_AIN_NotifyChange</A></LI>
      <LI><A NAME="back_USER_DIN_NotifyToggle"><A HREF="#USER_DIN_NotifyToggle">USER_DIN_NotifyToggle</A></LI>
      <LI><A NAME="back_USER_DISPLAY_Init"><A HREF="#USER_DISPLAY_Init">USER_DISPLAY_Init</A></LI>
      <LI><A NAME="back_USER_DISPLAY_Tick"><A HREF="#USER_DISPLAY_Tick">USER_DISPLAY_Tick</A></LI>
      <LI><A NAME="back_USER_ENC_NotifyChange"><A HREF="#USER_ENC_NotifyChange">USER_ENC_NotifyChange</A></LI>
      <LI><A NAME="back_USER_Init"><A HREF="#USER_Init">USER_Init</A></LI>
      <LI><A NAME="back_USER_LCD_Clear"><A HREF="#USER_LCD_Clear">USER_LCD_Clear</A></LI>
      <LI><A NAME="back_USER_LCD_Cmd"><A HREF="#USER_LCD_Cmd">USER_LCD_Cmd</A></LI>
      <LI><A NAME="back_USER_LCD_CursorSet"><A HREF="#USER_LCD_CursorSet">USER_LCD_CursorSet</A></LI>
      <LI><A NAME="back_USER_LCD_Data"><A HREF="#USER_LCD_Data">USER_LCD_Data</A></LI>
      <LI><A NAME="back_USER_LCD_Init"><A HREF="#USER_LCD_Init">USER_LCD_Init</A></LI>
      <LI><A NAME="back_USER_LCD_PrintChar"><A HREF="#USER_LCD_PrintChar">USER_LCD_PrintChar</A></LI>
      <LI><A NAME="back_USER_LCD_SpecialCharInit"><A HREF="#USER_LCD_SpecialCharInit">USER_LCD_SpecialCharInit</A></LI>
      <LI><A NAME="back_USER_MIDI_NotifyRx"><A HREF="#USER_MIDI_NotifyRx">USER_MIDI_NotifyRx</A></LI>
      <LI><A NAME="back_USER_MIDI_NotifyTx"><A HREF="#USER_MIDI_NotifyTx">USER_MIDI_NotifyTx</A></LI>
      <LI><A NAME="back_USER_MPROC_DebugTrigger"><A HREF="#USER_MPROC_DebugTrigger">USER_MPROC_DebugTrigger</A></LI>
      <LI><A NAME="back_USER_MPROC_NotifyFoundEvent"><A HREF="#USER_MPROC_NotifyFoundEvent">USER_MPROC_NotifyFoundEvent</A></LI>
      <LI><A NAME="back_USER_MPROC_NotifyReceivedByte"><A HREF="#USER_MPROC_NotifyReceivedByte">USER_MPROC_NotifyReceivedByte</A></LI>
      <LI><A NAME="back_USER_MPROC_NotifyReceivedEvent"><A HREF="#USER_MPROC_NotifyReceivedEvent">USER_MPROC_NotifyReceivedEvent</A></LI>
      <LI><A NAME="back_USER_MPROC_NotifyTimeout"><A HREF="#USER_MPROC_NotifyTimeout">USER_MPROC_NotifyTimeout</A></LI>
      <LI><A NAME="back_USER_SR_Service_Finish"><A HREF="#USER_SR_Service_Finish">USER_SR_Service_Finish</A></LI>
      <LI><A NAME="back_USER_SR_Service_Prepare"><A HREF="#USER_SR_Service_Prepare">USER_SR_Service_Prepare</A></LI>
      <LI><A NAME="back_USER_Tick"><A HREF="#USER_Tick">USER_Tick</A></LI>
      <LI><A NAME="back_USER_Timer"><A HREF="#USER_Timer">USER_Timer</A></LI>
    </UL>
  </LI>
  <IMG SRC="images/1x1dot.gif" height=20 ALT=""><BR>
</UL>
<HR><A NAME="MIOS_MIDI_BeginStream"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_BeginStream</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_BeginStream</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>use this function before a new MIDI event or stream should   be sent. Necessary for a correct function of the MIDIbox Link feature!</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; send the MIDI event B0 07 7F
        call        MIOS_MIDI_BeginStream
        movlw        0xb0
        call        MIOS_MIDI_TxBufferPut
        movlw        0x07
        call        MIOS_MIDI_TxBufferPut
        movlw        0x7f
        call        MIOS_MIDI_TxBufferPut
        call        MIOS_MIDI_EndStream

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_BeginStream">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_DeviceIDAutoSet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_DeviceIDAutoSet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_DeviceIDAutoSet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>derives the MIDI device ID from the PIC ID header</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR, TBLPTR</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; set device ID to the specified value in the PIC ID header
        call        MIOS_MIDI_DeviceIDAutoSet

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_DeviceIDAutoSet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_DeviceIDGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_DeviceIDGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_DeviceIDGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns the MIDI device ID</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>device number in WREG and MIOS_PARAMETER1 (0x00-0x7f)</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; print device ID on display
        call        MIOS_MIDI_DeviceIDGet
        call        MIOS_LCD_PrintHex2

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_DeviceIDGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_DeviceIDSet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_DeviceIDSet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_DeviceIDSet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>sets the MIDI device ID. Should be a unique number in a MIDI   chain. Normaly this ID is derived from the PIC ID header with the   MIOS_MIDI_DeviceIDAutoSet function</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>device number in WREG (0x00-0x7f)</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; set device ID to 0x03
        movlw        0x03
        call        MIOS_MIDI_DeviceIDSet

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_DeviceIDSet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_EndStream"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_EndStream</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_EndStream</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>use this function after a MIDI event or stream has been   sent. Necessary for a correct function of the MIDIbox Link feature!</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; send the MIDI event 90 36 7F
        call        MIOS_MIDI_BeginStream
        movlw        0x90
        call        MIOS_MIDI_TxBufferPut
        movlw        0x36
        call        MIOS_MIDI_TxBufferPut
        movlw        0x7f
        call        MIOS_MIDI_TxBufferPut
        call        MIOS_MIDI_EndStream

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_EndStream">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_Init"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_Init</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_Init</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>initialises the MIDI interface: baudrate will be set   depending on To-Host/MIDI option, Rx and Tx buffer will be emptied</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_Init">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_InterfaceAutoSet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_InterfaceAutoSet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_InterfaceAutoSet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>derives the MIDI interface type and the MBHP_IIC_MIDI module address   from the PIC ID header.<BR>   To-Host flag: ID Byte 6, Bit 0<BR>   MBHP_IIC_MIDI module address: ID Byte 5<BR>   If the slave address is != 0x00 and != 0xff, it will be taken as default   MIDI Out by MIOS</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR, TBLPTR</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; set MIDI interface to the specified type in the PIC ID header
        call        MIOS_MIDI_InterfaceAutoSet

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_InterfaceAutoSet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_InterfaceGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_InterfaceGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_InterfaceGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns the current MIDI interface type   following Interface types are provided:<BR>      0x00: MIOS_MIDI_INTERFACE_COMMON (common MIDI interface, 31250 baud)<BR>      0x01: MIOS_MIDI_INTERFACE_TO_HOST (MIDIbox-to-COM interface, RS232, 38400 baud)<BR>      >= 0x02: MBHP_IIC_MIDI module address</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>interface type in WREG and MIOS_PARAMETER1</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; branch if MBHP_IIC_MIDI module is selected
        call        MIOS_MIDI_InterfaceGet
        andlw   0xfe
        bnz     HandleExternalMIDI

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_InterfaceGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_InterfaceSet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_InterfaceSet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_InterfaceSet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>this function has two purposes:<BR>   If the interface number is 0x00 or 0x01, the internal USART will be selected,   and a baudrate of either 31250 or 38400 baud will be configured:<BR>      0x00: MIOS_MIDI_INTERFACE_COMMON (common MIDI interface, 31250 baud)<BR>      0x01: MIOS_MIDI_INTERFACE_TO_HOST (MIDIbox-to-COM interface, RS232, 38400 baud)<BR>   <BR>   With values >= 0x02 a MBHP_IIC_MIDI module will be selected for <B>outgoing</B>   MIDI messages (which are sent with MIOS_MIDI_TxBufferPut)<BR>   Incoming messages are still handled with the internal USART!<BR>   If data should be received from a MBHP_IIC_MIDI module, please use the appr.   functions of the software package which is provided together with the module.<BR>   Note that the MIOS_MIDI_InterfaceAutoSet function allows you to derive the MIDI   interface type and the IIC slave address from the PIC ID header!<BR></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>interface type in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; send MIDI clock over internal MIDI Out with normal baudrate
        movlw        MIOS_MIDI_INTERFACE_COMMON
        call        MIOS_MIDI_InterfaceSet

        movlw        0xf8  ; (MIDI Clock)
        call        MIOS_MIDI_TxBufferPut

        ;; send MIDI clock over MBHP_IIC_MIDI with address 0x10
        movlw        0x10
        call        MIOS_MIDI_InterfaceSet

        movlw        0xf8  ; (MIDI Clock)
        call        MIOS_MIDI_TxBufferPut

        ;; switch back to the default interface
        call        MIOS_MIDI_InterfaceAutoSet

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_InterfaceSet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_MergerGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_MergerGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_MergerGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns configuration of integrated MIDI merger:      0x00: MIOS_MIDI_MERGER_DISABLED  (merger disabled)<BR>      0x01: MIOS_MIDI_MERGER_ENABLED   (merger enabled)<BR>      0x02: MIOS_MIDI_MERGER_MBLINK_EP (MIDIbox Link End Point)<BR>      0x03: MIOS_MIDI_MERGER_MBLINK_FP (MIDIbox Link Forwarding Point)</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>merger function ID in WREG and MIOS_PARAMETER1</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; get current merger configuration and branch depending on setting
        call        MIOS_MIDI_MergerGet
        BRA_IFSET WREG, 1, ACCESS, MBLinkEnabled
        rgoto        MBLinkNotEnabled

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_MergerGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_MergerSet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_MergerSet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_MergerSet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>configures the integrated MIDI merger   following Merger IDs are provided:<BR>      0x00: MIOS_MIDI_MERGER_DISABLED  (merger disabled)<BR>      0x01: MIOS_MIDI_MERGER_ENABLED   (merger enabled)<BR>      0x02: MIOS_MIDI_MERGER_MBLINK_EP (MIDIbox Link End Point)<BR>      0x03: MIOS_MIDI_MERGER_MBLINK_FP (MIDIbox Link Forwarding Point)</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>merger function ID in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; configure the MIDIbox as MIDIbox Link End Point
        ;; (means: merger enabled only for events which has
        ;; been generated by another MIDIbox which is configured
        ;; as MIDIbox Link Forwarding Point)
        movlw        MIOS_MIDI_MERGER_MBLINK_EP
        call        MIOS_MIDI_MergerSet

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_MergerSet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_RxBufferFree"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_RxBufferFree</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_RxBufferFree</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns number of free bytes in receive buffer</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>number of free bytes in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>NOTE</B></TD>
    <TD CLASS=TABCOLOR2><I>this function is for internal use within MIOS only!<BR>   Received bytes will be notified by the MPROC hooks!</I></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; put a MIDI byte into the Rx Buffer if it isn't full
        call        MIOS_MIDI_RxBufferFree
        bz        BufferIsFull
        movlw        0xf8        ; (MIDI Clock)
        call        MIOS_MIDI_RxBufferPut

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_RxBufferFree">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_RxBufferGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_RxBufferGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_RxBufferGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>gets a byte from the receive buffer</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>received byte in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR, FSR1</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>NOTE</B></TD>
    <TD CLASS=TABCOLOR2><I>this function is for internal use within MIOS only!<BR>   Received bytes will be notified by the MPROC hooks!</I></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; get a MIDI byte from the Rx Buffer if something has been received
        call        MIOS_MIDI_RxBufferUsed
        bz        NothingReceived
        call        MIOS_MIDI_RxBufferGet

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_RxBufferGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_RxBufferPut"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_RxBufferPut</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_RxBufferPut</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>puts a byte onto the receive buffer</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>byte in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR, FSR1</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>NOTE</B></TD>
    <TD CLASS=TABCOLOR2><I>this function is for internal use within MIOS only!<BR>   Received bytes will be notified by the MPROC hooks!</I></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; put a MIDI byte into the Rx Buffer if it isn't full
        call        MIOS_MIDI_RxBufferFree
        bz        BufferIsFull
        movlw        0xf8        ; (MIDI Clock)
        call        MIOS_MIDI_RxBufferPut

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_RxBufferPut">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_RxBufferUsed"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_RxBufferUsed</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_RxBufferUsed</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns number of used bytes in receive buffer</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>number of used bytes in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>NOTE</B></TD>
    <TD CLASS=TABCOLOR2><I>this function is for internal use within MIOS only!<BR>   Received bytes will be notified by the MPROC hooks!</I></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; branch if something has been received via MIDI
        call        MIOS_MIDI_RxBufferUsed
        bz        ReceivedSomething

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_RxBufferUsed">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_TxBufferFlush"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_TxBufferFlush</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_TxBufferFlush</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>waits until all MIDI bytes in the Tx buffer have been transmitted</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR, FSR1</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; wait until buffer is empty, thereafter send a bunch of new bytes
        call        MIOS_MIDI_TxBufferFlush
        movlw        0xf0
        call        MIOS_MIDI_TxBufferPut
        ;;  ...

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_TxBufferFlush">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_TxBufferFree"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_TxBufferFree</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_TxBufferFree</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns number of free bytes in transmit buffer</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>number of free bytes in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>NOTE</B></TD>
    <TD CLASS=TABCOLOR2><I>this function is for internal use within MIOS only!<BR>   The MIOS_MIDI_TxBufferPut() function will wait if the buffer is full.</I></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; put a MIDI byte into the Tx Buffer if it isn't full
        call        MIOS_MIDI_TxBufferFree
        bz        BufferIsFull
        movlw        0xf8        ; (MIDI Clock)
        call        MIOS_MIDI_TxBufferPut

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_TxBufferFree">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_TxBufferGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_TxBufferGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_TxBufferGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>gets a byte from the transmit buffer</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>byte to be transmitted in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR, FSR1</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>NOTE</B></TD>
    <TD CLASS=TABCOLOR2><I>this function is for internal use within MIOS only!</I></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; get a MIDI byte from the Tx Buffer if new byte is available
        call        MIOS_MIDI_TxBufferUsed
        bz        NoByteAvailable
        call        MIOS_MIDI_TxBufferGet

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_TxBufferGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_TxBufferPut"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_TxBufferPut</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_TxBufferPut</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>puts a byte onto the transmit buffer.<BR>   If Tx buffer is full, the function will be suspended until one byte has been   transmitted via MIDI.<BR>   This function redirects outgoing bytes to the MBHP_IIC_MIDI module if it has   been selected with the MIOS_MIDI_InterfaceSet or MIOS_MIDI_InterfaceAutoSet function</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>byte in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR, FSR1</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; put a MIDI byte into the Tx Buffer if it isn't full
        movlw        0xf8        ; (MIDI Clock)
        call        MIOS_MIDI_TxBufferPut

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_TxBufferPut">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MIDI_TxBufferUsed"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MIDI_TxBufferUsed</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MIDI_TxBufferUsed</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns number of used bytes in buffer</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>number of used bytes in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>NOTE</B></TD>
    <TD CLASS=TABCOLOR2><I>this function is for internal use within MIOS only!<BR>   The MIOS_MIDI_TxBufferPut() function will wait if the buffer is full.</I></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; branch if something has been put into the Tx Buffer
        call        MIOS_MIDI_TxBufferUsed
        bz        GotSomething

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MIDI_TxBufferUsed">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MPROC_MergerDisable"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MPROC_MergerDisable</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MPROC_MergerDisable</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>this function allows you to temporary disable the MIDI merger   processing during receiving a new event. It's used by SysEx parsers to   prevent the forwarding of SysEx strings, but can also used by the   USER_MPROC_NotifyReceivedByte hook to filter other events   The merger will be enabled again after a complete MIDI event has been   received!</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MPROC_MergerDisable">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MPROC_MergerEnable"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MPROC_MergerEnable</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MPROC_MergerEnable</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>enables MIDI merger processing like specified with MIOS_MIDI_MergerSet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MPROC_MergerEnable">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MPROC_MergerGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MPROC_MergerGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MPROC_MergerGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns 1 if merger processing is enabled, 0 if disabled</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>status in WREG and MIOS_PARAMETER1</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MPROC_MergerGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_AIN_DeadbandGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_AIN_DeadbandGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_AIN_DeadbandGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns the difference between last and current pot   value which has to be achieved to trigger the "NotifyChange" function</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>diff value in MIOS_PARAMETER1 and WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_AIN_DeadbandGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_AIN_DeadbandSet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_AIN_DeadbandSet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_AIN_DeadbandSet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>sets the difference between last and current pot value   which has to be achieved to trigger the "NotifyChange" function</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>deadband value in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_AIN_DeadbandSet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_AIN_DynamicPrioGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_AIN_DynamicPrioGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_AIN_DynamicPrioGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns the status of the dynamic priority sampling feature.   The flag will only be taken into account in multiplexed mode (more than 8   pots connected to the core module via AINX4). If active, the sampling   frequency of the two last turned pots will be dynamically increased   for a better accuracy.</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>WREG = 0x00: dynamic priority sampling disabled or non-multiplexed mode active<BR>        WREG = 0x01: dynamic priority sampling enabled (default)</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_AIN_DynamicPrioGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_AIN_DynamicPrioSet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_AIN_DynamicPrioSet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_AIN_DynamicPrioSet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>enables or disables the dynamic priority sampling feature.   The flag will only be taken into account in multiplexed mode (more than 8   pots connected to the core module via AINX4). If active, the sampling   frequency of the two last turned pots will be dynamically increased   for a better accuracy.</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>WREG = 0x00: dynamic priority sampling disabled<BR>        WREG = 0x01: dynamic priority sampling enabled (default)</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_AIN_DynamicPrioSet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_AIN_LastPinsGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_AIN_LastPinsGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_AIN_LastPinsGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns the index of the two pins which have been   sampled with a different value at last.<BR>   In less abstract words: returns the number of the last two turned pots.</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>WREG and MIOS_PARAMETER1: last pin<BR>        MIOS_PARAMETER2: last but one pin</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_AIN_LastPinsGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_AIN_Muxed"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_AIN_Muxed</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_AIN_Muxed</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>enables the MUX mode (up to 64 pots can be connected via   AIN multiplexers</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_AIN_Muxed">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_AIN_NumberGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_AIN_NumberGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_AIN_NumberGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns number of available analog pins</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>number of analog pins in MIOS_PARAMETER1 and WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_AIN_NumberGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_AIN_NumberSet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_AIN_NumberSet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_AIN_NumberSet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>sets number of available AIN pins<BR>   If number > 64, value will be forced to 64</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>number of analog pins in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_AIN_NumberSet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_AIN_Pin7bitGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_AIN_Pin7bitGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_AIN_Pin7bitGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns 7-bit value of AIN input</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>number of analog input pin in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>7-bit value in MIOS_PARAMETER1 and WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR, FSR1, MIOS_PARAMETER[12]</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_AIN_Pin7bitGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_AIN_PinGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_AIN_PinGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_AIN_PinGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns value of AIN input</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>pin number in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>MSB in MIOS_PARAMETER2, LSB in MIOS_PARAMETER1 and WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>FSR1</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_AIN_PinGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_AIN_PinLSBGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_AIN_PinLSBGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_AIN_PinLSBGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns LSB value of AIN input</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>pin number in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>LSB value in MIOS_PARAMETER1 and WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>FSR1</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_AIN_PinLSBGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_AIN_PinMSBGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_AIN_PinMSBGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_AIN_PinMSBGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns MSB value of AIN input</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>pin number in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>MSB value in MIOS_PARAMETER1 and WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>FSR1</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_AIN_PinMSBGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_AIN_UnMuxed"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_AIN_UnMuxed</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_AIN_UnMuxed</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>disables the MUX mode (8 pots can be connected directly   to the analog input pins of the PIC</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_AIN_UnMuxed">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MF_DeadbandGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MF_DeadbandGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MF_DeadbandGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns the deadband value for MF driver</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>deadband value in MIOS_PARAMETER1 and WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MF_DeadbandGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MF_DeadbandSet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MF_DeadbandSet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MF_DeadbandSet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>sets the deadband value for MF driver</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>deadband value in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>NOTE</B></TD>
    <TD CLASS=TABCOLOR2>function can only be used when motordriver has been enabled.</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MF_DeadbandSet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MF_Disable"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MF_Disable</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MF_Disable</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>disables the MF module</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MF_Disable">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MF_Enable"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MF_Enable</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MF_Enable</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>enables the MF module - in this mode, multiplexers   are disabled. Up to 8 motorfaders can be controlled over the MUX port.   This function can only be used when the motordriver has been enabled.</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>

        ;; initialize the MF driver for Alps RSAON11M9 faders
        call        MIOS_MF_Enable
        movlw        3
        call        MIOS_MF_DeadbandSet

        movlw        1
        call        MIOS_MF_PWM_DutyCycleUpSet
        movlw        1
        call        MIOS_MF_PWM_DutyCycleDownSet
        movlw        3
        call        MIOS_MF_PWM_PeriodSet

</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MF_Enable">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MF_FaderMove"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MF_FaderMove</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MF_FaderMove</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>set target position and move fader</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>fader number in WREG, fader position in MIOS_PARAMETER[12]</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>FSR1, BSR</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>NOTE</B></TD>
    <TD CLASS=TABCOLOR2>function can only be used when motordriver has been enabled.</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>EXAMPLE</B></TD>
    <TD CLASS=TABCOLOR2><PRE>
        ;; move fader #7 to highest position (0x3ff)
        movlw        0x03
        movwf        MIOS_PARAMETER2
        movlw        0xff
        movwf        MIOS_PARAMETER1
        movlw        0x07
        call        MIOS_MF_FaderMove
</PRE></TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MF_FaderMove">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MF_PWM_DutyCycleDownGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MF_PWM_DutyCycleDownGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MF_PWM_DutyCycleDownGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>Returns the Duty Cycle for downward moves -   see http://www.ucapps.de/mbhp_mf.html for detailed informations about this value</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>Duty Cycle in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MF_PWM_DutyCycleDownGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MF_PWM_DutyCycleDownSet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MF_PWM_DutyCycleDownSet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MF_PWM_DutyCycleDownSet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>Sets the Duty Cycle for downward moves -   see http://www.ucapps.de/mbhp_mf.html for detailed informations about this value</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>Duty Cycle in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MF_PWM_DutyCycleDownSet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MF_PWM_DutyCycleUpGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MF_PWM_DutyCycleUpGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MF_PWM_DutyCycleUpGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>Returns the Duty Cycle for upward moves -   see http://www.ucapps.de/mbhp_mf.html for detailed informations about this value</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>Duty Cycle in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MF_PWM_DutyCycleUpGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MF_PWM_DutyCycleUpSet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MF_PWM_DutyCycleUpSet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MF_PWM_DutyCycleUpSet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>Sets the Duty Cycle for upward moves -   see http://www.ucapps.de/mbhp_mf.html for detailed informations about this value</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>Duty Cycle in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MF_PWM_DutyCycleUpSet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MF_PWM_PeriodGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MF_PWM_PeriodGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MF_PWM_PeriodGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>Returns the PWM period - see http://www.ucapps.de/mbhp_mf.html   for detailed informations about this value</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>PWM period in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MF_PWM_PeriodGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MF_PWM_PeriodSet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MF_PWM_PeriodSet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MF_PWM_PeriodSet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>Sets the PWM period - see http://www.ucapps.de/mbhp_mf.html   for detailed informations about this value</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>PWM period in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MF_PWM_PeriodSet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MF_SuspendDisable"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MF_SuspendDisable</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MF_SuspendDisable</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>deactivate suspend mode of motor<BR>   (function used by touchsensor detection)<BR>   function can only be used when motordriver has been enabled.</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>number of motor in WREG (0-7)</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR, FSR1</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MF_SuspendDisable">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MF_SuspendEnable"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MF_SuspendEnable</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MF_SuspendEnable</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>suspends the motor<BR>   (function used by touchsensor detection)<BR>   function can only be used when motordriver has been enabled.</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>number of motor in WREG (0-7)</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MF_SuspendEnable">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MF_SuspendGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MF_SuspendGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MF_SuspendGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>return suspend state of motor</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>number of motor in WREG (0-7)</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>WREG = 1 if motor is suspended, else 0</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MF_SuspendGet">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_MF_TouchDetectionReset"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_MF_TouchDetectionReset</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_MF_TouchDetectionReset</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>this function resets the software implemented touch detection   so that the fader is repositioned regardless if it is currently   manually moved or not</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>number of motor in WREG (0-7)</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>BSR</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_MF_TouchDetectionReset">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_DIN_PinAutoRepeatDisable"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_DIN_PinAutoRepeatDisable</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_DIN_PinAutoRepeatDisable</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>disables the auto-repeat feature for the appr. pin</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>number of pin in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>FSR1</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_DIN_PinAutoRepeatDisable">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_DIN_PinAutoRepeatEnable"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_DIN_PinAutoRepeatEnable</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_DIN_PinAutoRepeatEnable</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>enables the auto-repeat feature for the appr. pin</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>number of pin in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>-</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>USES</B></TD>
    <TD CLASS=TABCOLOR2>FSR1</TD>
  </TR>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR2 WIDTH=150><A HREF="#back_MIOS_DIN_PinAutoRepeatEnable">Back to the top</A></TD>
  </TR>
</TABLE>
<HR><A NAME="MIOS_DIN_PinAutoRepeatGet"></A>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
  <TR>
    <TD COLSPAN=2 CLASS=TABCOLOR1><FONT SIZE=3><STRONG>MIOS_DIN_PinAutoRepeatGet</STRONG></FONT></TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>FUNCTION</B></TD>
    <TD CLASS=TABCOLOR2>MIOS_DIN_PinAutoRepeatGet</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>DESCRIPTION</B></TD>
    <TD CLASS=TABCOLOR2>returns != 0 if auto-repeat has been enabled for the appr. pin</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>IN</B></TD>
    <TD CLASS=TABCOLOR2>number of pin in WREG</TD>
  </TR>
  <TR>
    <TD CLASS=TABCOLOR2 WIDTH=150><B>OUT</B></TD>
    <TD CLASS=TABCOLOR2>WREG != 0 if auto-repeat has been enabled for this pin<BR>        WREG == 0 if auto-repeat has been disabled for this pin</TD>
  </TR>
  <TR>
    <