641 |
} |
} |
642 |
|
|
643 |
|
|
644 |
|
/** |
645 |
|
* Getting current subscribed events. |
646 |
|
* |
647 |
|
* @param pClient Pointer to client instance structure. |
648 |
|
* |
649 |
|
* @returns The current subscrived bit-wise OR'ed event flags. |
650 |
|
*/ |
651 |
|
lscp_event_t lscp_client_get_events ( lscp_client_t *pClient ) |
652 |
|
{ |
653 |
|
if (pClient == NULL) |
654 |
|
return LSCP_EVENT_NONE; |
655 |
|
|
656 |
|
return pClient->events; |
657 |
|
} |
658 |
|
|
659 |
|
|
660 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
661 |
// Client command protocol functions. |
// Client command protocol functions. |
662 |
|
|
1417 |
} |
} |
1418 |
|
|
1419 |
|
|
1420 |
|
/** |
1421 |
|
* Resetting the sampler: |
1422 |
|
* RESET |
1423 |
|
* |
1424 |
|
* @param pClient Pointer to client instance structure. |
1425 |
|
* |
1426 |
|
* @returns LSCP_OK on success, LSCP_FAILED otherwise. |
1427 |
|
*/ |
1428 |
|
lscp_status_t lscp_reset_sampler ( lscp_client_t *pClient ) |
1429 |
|
{ |
1430 |
|
return lscp_client_query(pClient, "RESET\r\n"); |
1431 |
|
} |
1432 |
|
|
1433 |
|
|
1434 |
// end of client.c |
// end of client.c |