Audio-Nav
Appendix 3 – Host API Library
Technical Manual
The content of this communication and/or document, including but not limited to images, specifications, designs, concepts and information is
confidential and is not to be used for any purpose or disclosed to a third party without the express and written consent of
Keymat Technology Ltd., Copyright 2015. All rights reserved.
1400 Series Audio-Nav Technical Manual Rev 1.5
www.storm-interface.com
Page 33 of 39
GetDeviceStatus
This function retrieves status information about the Audio Nav. For example, Jack status, HV switch status, led
level status etc. All information is stored in DEVICE_INFO structure.
Parameters :
typedef
struct
{
unsigned
char
led_brightness;
unsigned
char
keypad_table;
unsigned
char
jack_status;
unsigned
char
HV_status;
unsigned
char
keyCode[20]; //currently keytable in use
std::string
version;
std::string
serialNumber;
} DEVICE_INFO;
_deviceInfo
-
DEVICE_INFO sturcture, that will be filled by the function
timeToWait
-
maximum time to wait for command to complete
Return Value:
True for success
False for failure.
///\brief GetDeviceStatus Retrieves the USB Display’s status information including:
jack status, HV switch status, Firmware Name.
///The data are returned in a DEVICE_INFO structure
///\param _deviceInfo is a pointer to a DEVICE_INFO structure that receives
information retrieved from the Audio Nav.
///\param _timeToWait is the time in milliseconds to wait for the data to be
retrieved.
///\return 0 on success, negative error code on failure
///
Int
GetDeviceStatus( DEVICE_INFO *_deviceInfo,
int
_timeToWait );