SonyAutoFocusOperation

class SonyAutoFocusOperation(camera: ICamera) : CameraOperation

Functions

Link copied to clipboard
open override fun encodeCommand(buffer: ByteBuffer)
Link copied to clipboard
open fun encodeData(buffer: ByteBuffer)

Derived classes should implement this method if they want to send data from host to camera. The field hasDataToSend has to be set to true for the sending to be done. The data to send must not be greater than the USB max packet size, any size below 256 should be save.

Link copied to clipboard
open override fun exec(io: IO)
Link copied to clipboard
open fun receivedRead(buffer: ByteBuffer)
Link copied to clipboard
open override fun reset()

Reset fields so this command may be requeued.

Properties

Link copied to clipboard
val camera: ICamera
Link copied to clipboard
var hasDataToSend: Boolean = false

Derived classes wich send data to camera, have to override this field

Link copied to clipboard
var hasResponseReceived: Boolean = false

Set to true when received a response from camera

Link copied to clipboard
var responseCode: Int = 0

Response code received from camera