CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLC_Fct_HybridMidi.h
Go to the documentation of this file.
1 //*********************************************************
2 // File: CLC_Fct_HybridMidi.h
3 // Project: CopperLan CHAILink Client SDK
4 // Version: 1.3
5 // Release Date: 2014/04/15
6 //*********************************************************
7 
8 /********************************************************************
9 Software License Agreement: CHAILink Client source code
10 
11 The software supplied herewith by Klavis Technology (the “Company”) is intended and
12 supplied to you, the Company’s customer, for use solely and exclusively on embedded
13 CopperLan products needing a CHAILink Client.
14  The software is owned by the Company and/or its supplier, and is protected
15  under applicable copyright laws. All rights are reserved. Any use in violation of the
16  foregoing restrictions may subject the user to criminal sanctions under applicable laws,
17 as well as to civil liability for the breach of the terms and conditions of this license.
18 
19 THIS SOFTWARE MUST REMAIN UNMODIFIED. NO WARRANTIES, WHETHER EXPRESS,
20  IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
21  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE
22 IN CASE OF SOURCE CODE CHANGE BY THE CUSTOMER. IN CASE OF SUCH CHANGE, THE
23 COMPANY SHALL NOT BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
24 OF ANY KIND.
25 ********************************************************************/
26 
27 #ifndef _CLC_FCT_HYBRIDMIDI_H_
28 #define _CLC_FCT_HYBRIDMIDI_H_
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
39 
42 
56  CPHOBJECT const hHybridMIDI,
57  CPUINT8 const bDataLength,
58  CPBYTE const * const pData,
59  CPBOOLEAN const fFlush,
60  CPUINT8 * const pbSent);
62 
65 
66 #if defined(ENABLE_DEVICE_COPPERLAN2MIDI)
67 
75  CPHOBJECT const hHybridMIDI);
76 
82  CPHOBJECT const hHybridMIDI);
83 
84 #endif
85 
93  CPHOBJECT const hHybridMIDI,
94  MIDICCModes const mode);
95 
103  CPHOBJECT const hHybridMIDI,
104  CPBOOLEAN const fEnable);
105 
112  CPHOBJECT const hHybridMIDI,
113  CPBOOLEAN * const pfEnabled);
114 
120  CPHOBJECT const hHybridMIDI);
121 
123 
125 
126 #ifdef __cplusplus
127 }
128 #endif
129 
130 #endif // _CLC_FCT_HYBRIDMIDI_H_
CLC_ErrorCode HybridMIDI_SetMIDICCMode(CPHOBJECT const hHybridMIDI, MIDICCModes const mode)
Set the MIDI CC MSB/LSB mode. Default value is MSB.
#define CLC_SDK_API
Definition: CLCm_Platform.h:37
CLC_ErrorCode
Error code Enumeration. Error codes from 0x01 to 0xFF are related to a CopperLan functions return cod...
Definition: CLCm_Defines.h:469
MIDICCModes
MIDI Control Change MSB/LSB mode.
Definition: CLC_Enums.h:1252
unsigned char CPUINT8
Byte Integer (8 bit unsigned)
Definition: PlatformTypes.h:42
CLC_ErrorCode HybridMIDI_RegisterNotificationHandler(CPHOBJECT const hHybridMIDI)
Register notification handler for a Hybrid Midi local device.
CLC_ErrorCode HybridMIDI_EnableActiveSensing(CPHOBJECT const hHybridMIDI, CPBOOLEAN const fEnable)
Enable or disable the MIDI active sensing Active sensing is enabled by default.
CLC_ErrorCode HybridMIDI_DataConsumed(CPHOBJECT const hHybridMIDI)
Send a DataConsumed on Sys input.
CLC_ErrorCode HybridMIDI_SendMIDIBlob(CPHOBJECT const hHybridMIDI, CPUINT8 const bDataLength, CPBYTE const *const pData, CPBOOLEAN const fFlush, CPUINT8 *const pbSent)
Send a MIDI blob.
CPUINT32 CPHOBJECT
Handle on Object.
Definition: CLCm_Types.h:57
CLC_ErrorCode HybridMIDI_UnregisterNotificationHandler(CPHOBJECT const hHybridMIDI)
Unregister notification handler for a Hybrid Midi local device.
CLC_ErrorCode HybridMIDI_IsActiveSensingEnabled(CPHOBJECT const hHybridMIDI, CPBOOLEAN *const pfEnabled)
Check if MIDI active sensing is enabled.