github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/ardupilotmega/message_device_op_write.go (about) 1 //autogenerated:yes 2 //nolint:revive,misspell,govet,lll 3 package ardupilotmega 4 5 // Write registers for a device. 6 type MessageDeviceOpWrite struct { 7 // System ID. 8 TargetSystem uint8 9 // Component ID. 10 TargetComponent uint8 11 // Request ID - copied to reply. 12 RequestId uint32 13 // The bus type. 14 Bustype DEVICE_OP_BUSTYPE `mavenum:"uint8"` 15 // Bus number. 16 Bus uint8 17 // Bus address. 18 Address uint8 19 // Name of device on bus (for SPI). 20 Busname string `mavlen:"40"` 21 // First register to write. 22 Regstart uint8 23 // Count of registers to write. 24 Count uint8 25 // Write data. 26 Data [128]uint8 27 // Bank number. 28 Bank uint8 `mavext:"true"` 29 } 30 31 // GetID implements the message.Message interface. 32 func (*MessageDeviceOpWrite) GetID() uint32 { 33 return 11002 34 }