pub enum Operation {
Show 13 variants
SendVariable,
RequireVariable,
Invoke,
GetVersion,
Start,
EndTransaction,
Acknowledge,
Query,
Return,
Empty,
Data,
Await,
Error,
}Expand description
Defines the set of operations supported by the PK Command protocol.
Variants§
SendVariable
To set a variable’s value on the device.
5-character name: SENDV
RequireVariable
To get a variable’s value from the device.
5-character name: REQUV
Invoke
To invoke a method on the device.
5-character name: INVOK
GetVersion
To get the version of the PK Command processor on the device.
5-character name: PKVER
Start
To indicate the start of a transaction chain.
This is used internally by the poll method to manage transaction stages
and usually should not be used directly.
5-character name: START
EndTransaction
To indicate the end of a transaction chain.
This is used internally by the poll method to manage transaction stages
and usually should not be used directly.
5-character name: ENDTR
Acknowledge
To acknowledge the receipt of a command.
This is used internally by the state machine to manage acknowledgment status and usually should not be used directly.
5-character name: ACKNO
Query
To request the outbound data from the device.
This is used internally by the state machine to manage transaction stages and usually should not be used directly.
5-character name: QUERY
Return
To return the response data from the device to the host.
This is used internally by the state machine to manage transaction stages and usually should not be used directly.
5-character name: RTURN
Empty
To indicate that the current transaction phase has no data.
This is used internally by the state machine to manage transaction stages and usually should not be used directly.
5-character name: EMPTY
Data
To send a chunk of data.
This is used internally by the state machine to manage transaction stages and usually should not be used directly.
5-character name: SDATA
Await
To indicate that the device is still processing and the transaction should be kept alive.
This is used internally by the state machine to manage transaction stages and usually should not be used directly.
5-character name: AWAIT
Error
To indicate an error occurred during transaction processing.
This is used internally by the state machine to manage error handling and usually should not be used directly.
5-character name: ERROR