libRBR
v1.2.3
RBR instrument communication API
|
Instrument commands and structures pertaining to command security and interaction. More...
Go to the source code of this file.
Functions | |
RBRInstrumentError | RBRInstrument_permit (RBRInstrument *instrument, const char *command) |
Permits a protected command to be executed. More... | |
RBRInstrumentError | RBRInstrument_getPrompt (RBRInstrument *instrument, bool *prompt) |
Get the state of the “Ready:” prompt. More... | |
RBRInstrumentError | RBRInstrument_setPrompt (RBRInstrument *instrument, bool prompt) |
Set the state of the “Ready:” prompt. More... | |
RBRInstrumentError | RBRInstrument_getConfirmation (RBRInstrument *instrument, bool *confirmation) |
Get the state of the logger's confirmation responses. More... | |
RBRInstrumentError | RBRInstrument_setConfirmation (RBRInstrument *instrument, bool confirmation) |
Set the state of the logger's confirmation responses. More... | |
RBRInstrumentError | RBRInstrument_reboot (RBRInstrument *instrument, int32_t delay) |
Reset the logger CPU. More... | |
Instrument commands and structures pertaining to command security and interaction.
RBRInstrumentError RBRInstrument_getConfirmation | ( | RBRInstrument * | instrument, |
bool * | confirmation | ||
) |
Get the state of the logger's confirmation responses.
The confirmation responses are normally sent after a parameter has been modified if the state is on.
[in] | instrument | the instrument connection |
[out] | confirmation | whether confirmation is enabled |
RBRInstrumentError RBRInstrument_getPrompt | ( | RBRInstrument * | instrument, |
bool * | prompt | ||
) |
Get the state of the “Ready:” prompt.
The prompt is normally sent by the logger in response to almost any command after any other output generated by the command is complete.
[in] | instrument | the instrument connection |
[out] | prompt | whether the prompt is enabled |
RBRInstrumentError RBRInstrument_permit | ( | RBRInstrument * | instrument, |
const char * | command | ||
) |
Permits a protected command to be executed.
Permits a protected command to be executed immediately after this one; receipt of anything else removes the permission again. Any other constraints on executing a particular command will still apply. It is not an error to permit
a command which does not need it, merely unnecessary.
[in] | instrument | the instrument connection |
[in] | command | the command to permit |
RBRInstrumentError RBRInstrument_reboot | ( | RBRInstrument * | instrument, |
int32_t | delay | ||
) |
Reset the logger CPU.
[in] | instrument | the instrument connection |
[in] | delay | time in milliseconds to wait before rebooting |
RBRInstrumentError RBRInstrument_setConfirmation | ( | RBRInstrument * | instrument, |
bool | confirmation | ||
) |
Set the state of the logger's confirmation responses.
This function permits confirmation to be set on or off. However, the rest of the library expects confirmations to be on, and most setters will poll the instrument until timeout with it off.
[in] | instrument | the instrument connection |
[in] | confirmation | whether confirmation should be enabled |
RBRInstrumentError RBRInstrument_setPrompt | ( | RBRInstrument * | instrument, |
bool | prompt | ||
) |
Set the state of the “Ready:” prompt.
[in] | instrument | the instrument connection |
[in] | prompt | whether the prompt should be enabled |