![]() |
![]() |
Data Structures | |
| struct | VISA_MsgHeader |
| VISA message header. More... | |
Functions | |
| VISA_Msg | VISA_allocMsg (VISA_Handle visa) |
| Obtain an algorithm instance's message. | |
| VISA_Status | VISA_call (VISA_Handle visa, VISA_Msg *msg) |
| Invoke the operation specified in the message and wait for it to complete. | |
| VISA_Status | VISA_callAsync (VISA_Handle visa, VISA_Msg *msg) |
| Invoke the operation specified in the message and return without waiting for it to complete. | |
| VISA_Status | VISA_wait (VISA_Handle visa, VISA_Msg *msg, UInt timeout) |
| Wait for the oldest operation from a command specified with VISA_callAsync() to complete. | |
| Void | VISA_freeMsg (VISA_Handle visa, VISA_Msg msg) |
| Release an algorithm instance's message. | |
| Void | VISA_getContext (VISA_Handle visa, UInt32 *pContext) |
| Get optional context parameter. | |
| Void | VISA_setContext (VISA_Handle visa, UInt32 context) |
| Set optional context parameter. | |
| VISA_Msg VISA_allocMsg | ( | VISA_Handle | visa | ) |
Obtain an algorithm instance's message.
| [in] | visa | Handle to an algorithm instance. |
| NULL | General system error | |
| non-NULL | The remote algorithm's message. |
| VISA_Status VISA_call | ( | VISA_Handle | visa, | |
| VISA_Msg * | msg | |||
| ) |
Invoke the operation specified in the message and wait for it to complete.
| [in] | visa | Handle to an algorithm instance. |
| [out] | msg | The remote algorithm's message, to be sent to the skeleton. |
| VISA_EOK | Success | |
| VISA_ERUNTIME | General system error |
| VISA_Status VISA_callAsync | ( | VISA_Handle | visa, | |
| VISA_Msg * | msg | |||
| ) |
Invoke the operation specified in the message and return without waiting for it to complete.
| [in] | visa | Handle to an algorithm instance. |
| [out] | msg | The remote algorithm's message, to be sent to the skeleton. |
| VISA_EOK | Success | |
| VISA_ERUNTIME | General system error |
| VISA_Status VISA_wait | ( | VISA_Handle | visa, | |
| VISA_Msg * | msg, | |||
| UInt | timeout | |||
| ) |
Wait for the oldest operation from a command specified with VISA_callAsync() to complete.
| [in] | visa | Handle to an algorithm instance. |
| [out] | msg | Placeholder for the remote algorithm's return message, retrieved from the skeleton. |
| [in] | timeout | Amount of "time" to wait ("time" depends on underlying mechanism, such as that used with MSGQ_Get()). |
| VISA_EOK | Success | |
| VISA_ERUNTIME | General system error | |
| VISA_ETIMEOUT | Operation timed out |
| Void VISA_freeMsg | ( | VISA_Handle | visa, | |
| VISA_Msg | msg | |||
| ) |
Release an algorithm instance's message.
| [in] | visa | Handle to an algorithm instance. |
| [in] | msg | Message to free, obtained through a call to VISA_allocMsg(). |
| NULL | General system error | |
| non-NULL | The remote algorithm's message. |
| Void VISA_getContext | ( | VISA_Handle | visa, | |
| UInt32 * | pContext | |||
| ) |
Get optional context parameter.
| [in] | visa | Handle to an algorithm instance. |
| [out] | pContext | Location to store context. |
visa must be a valid algorithm instance handle.
pContext must be a valid pointer.
| Void VISA_setContext | ( | VISA_Handle | visa, | |
| UInt32 | context | |||
| ) |
Set optional context parameter.
| [in] | visa | Handle to an algorithm instance. |
| [in] | context | Context. |
visa must be a valid algorithm instance handle.