pub struct IbStatus {}Fields§
§dcas: bool§dtas: bool§lacs: bool§tacs: bool§atn: bool§cic: bool§rem: bool§lok: bool§cmpl: bool§event: bool§spoll: bool§rqs: bool§srqi: bool§end: bool§timo: bool§err: boolImplementations§
Source§impl IbStatus
impl IbStatus
Sourcepub unsafe fn current_global_status() -> IbStatus
pub unsafe fn current_global_status() -> IbStatus
Get current value of from Linux-GPIB ibsta global variable.
Use current_thread_local_status or current_async_status instead.
Sourcepub fn current_thread_local_status() -> IbStatus
pub fn current_thread_local_status() -> IbStatus
The value of ibsta corresponding to the last ‘traditional’ or ‘multidevice’ function called by the current thread is returned.
Sourcepub fn current_async_local_status() -> IbStatus
pub fn current_async_local_status() -> IbStatus
Thread-local status value corresponding to the result of the last asynchronous I/O operation resynchronized to the current thread by an ibwait or ibstop call. This function only reflects the result of the asynchronous I/O operation itself and not, for example, the ibwait which resynchronized the asynchronous result to the current thread. Thus the result from AsyncIbsta() is easier to interpret than ThreadIbsta(), since it is unambiguous whether the value is associated with the asynchronous I/O result, or with the function call used to resynchronize (ibwait or ibstop).
Sourcepub fn from_ibsta(ibsta: ibsta_type) -> IbStatus
pub fn from_ibsta(ibsta: ibsta_type) -> IbStatus
Convert c_int status value to IbStatus
pub fn as_status_mask(&self) -> status_mask_type
Sourcepub fn as_ibsta(&self) -> ibsta_type
pub fn as_ibsta(&self) -> ibsta_type
Convert IbStatus to Linux GPIB c_int status