|
LMS API Documentation v23.11.0
|
Topics | |
| Message logging level | |
Data Structures | |
| struct | lms_dev_info_t |
Typedefs | |
| typedef bool(*) | lms_prog_callback_t(int bsent, int btotal, const char *progressMsg) |
| typedef void(*) | LMS_LogHandler(int lvl, const char *msg) |
Functions | |
| API_EXPORT int CALL_CONV | LMS_GetProgramModes (lms_device_t *device, lms_name_t *list) |
| API_EXPORT int CALL_CONV | LMS_Program (lms_device_t *device, const char *data, size_t size, const lms_name_t mode, lms_prog_callback_t callback) |
| API_EXPORT const lms_dev_info_t *CALL_CONV | LMS_GetDeviceInfo (lms_device_t *device) |
| API_EXPORT const char * | LMS_GetLibraryVersion (void) |
| Returns API library version. | |
| API_EXPORT const char *CALL_CONV | LMS_GetLastErrorMessage (void) |
| API_EXPORT void | LMS_RegisterLogHandler (LMS_LogHandler handler) |
The functions in this section provides ability to check device version and perform updates
| typedef void(*) LMS_LogHandler(int lvl, const char *msg) |
Callback function for redirecting API messages
| lvl | Message logging level. |
| msg | string containing log message text. |
Definition at line 1348 of file LimeSuite.h.
| typedef bool(*) lms_prog_callback_t(int bsent, int btotal, const char *progressMsg) |
Callback from programming processes
| bsent | number of bytes transferred |
| btotal | total number of bytes to send |
| progressMsg | string describing current progress state |
Definition at line 1269 of file LimeSuite.h.
| API_EXPORT const lms_dev_info_t *CALL_CONV LMS_GetDeviceInfo | ( | lms_device_t * | device | ) |
Get device serial number and version information
| device | Device handle previously obtained by LMS_Open(). |
| API_EXPORT const char *CALL_CONV LMS_GetLastErrorMessage | ( | void | ) |
Get the error message detailing why the last error occurred.
| API_EXPORT int CALL_CONV LMS_GetProgramModes | ( | lms_device_t * | device, |
| lms_name_t * | list ) |
Get the list of supported programming modes.
| device | Device handle previously obtained by LMS_Open(). | |
| [out] | list | list of programming modes (can be NULL). |
| API_EXPORT int CALL_CONV LMS_Program | ( | lms_device_t * | device, |
| const char * | data, | ||
| size_t | size, | ||
| const lms_name_t | mode, | ||
| lms_prog_callback_t | callback ) |
Write binary firmware/bitsteam image to specified device component.
| device | Device handle previously obtained by LMS_Open(). |
| data | Pointer to memory containing firmware/bitsteam image |
| size | Size of firmware/bitsteam image in bytes. |
| mode | programming mode, use LMS_GetProgramModes to get list of modes |
| callback | callback function for monitoring progress |
| API_EXPORT void LMS_RegisterLogHandler | ( | LMS_LogHandler | handler | ) |
Register a new system log handler. Should be called to replace the default stdio handler.
| handler | function for handling API messages |