Yamaha CS-700 Integrators Reference Guide
17
Return Values:
Value
Description
-1
General failure
0
Success
notifCtrl
Description:
Enable/disable notifications and register a callback function to handle CLI-format
notifications. The notifications are defined in section 5,
Notifications are automatically disabled if device is disconnected.
Syntax:
EXPORT int __cdecl notifCtrl(int mode, void(*notif_callback_t)(char *msg));
Parameters:
Parameter
Description
mode
Enable/disable notifications
notif_callback_t
Pointer to callback function to handle CLI notification
msg
Callback function parameter: Notification message string (see
Return Values:
Value
Description
-1
General failure
0
Success
updateFirmware
Description:
Update firmware on the CS-700 device. The host PC must have access to a proper firmware
bundle.
Syntax:
EXPORT int __cdecl updateFirmware(char *bundle, void(*update_firmware_callback_t)(int
nPercent));
Parameters:
Parameter
Description
bundle
Complete file path of upgrade bundle
update_firmware_
callback_t
Pointer to callback function to handle upgrade progress notifications
nPercent
Callback function parameter: Percent completion. A value of -1 indicates an upgrade
error.