{"version":3,"file":"SetDvi1Dvi0OffsetY.mjs","names":[],"sources":["../../generated/api/SetDvi1Dvi0OffsetY.ts"],"sourcesContent":["import { encodeUIntLE, ErrorType, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    SetDvi1Dvi0OffsetY(addr: number, bBroadcast: boolean, dvi1Dvi0OffsetY: number): Promise<void>;\n    trySetDvi1Dvi0OffsetY(addr: number, dvi1Dvi0OffsetY: number): Promise<ErrorType | null>;\n  }\n}\nexport default function createSetDvi1Dvi0OffsetY<Broadcast extends boolean>(\n  addr: number,\n  bBroadcast: Broadcast,\n  dvi1Dvi0OffsetY: number\n): Request<Broadcast> {\n  const $data = encodeUIntLE(dvi1Dvi0OffsetY, AddressMapping.Dvi1Dvi0OffsetYOccupancy);\n  const req = new Request($data, bBroadcast, 'SetDvi1Dvi0OffsetY');\n  req.destination = addr;\n  req.address = AddressMapping.Dvi1Dvi0OffsetYAddr;\n  return req;\n}\nSession.prototype.SetDvi1Dvi0OffsetY = async function SetDvi1Dvi0OffsetY(\n  this: Session,\n  addr: number,\n  bBroadcast: boolean,\n  dvi1Dvi0OffsetY: number\n): Promise<void> {\n  const req = createSetDvi1Dvi0OffsetY(addr, bBroadcast, dvi1Dvi0OffsetY);\n  await this.connection.send(req);\n};\nSession.prototype.trySetDvi1Dvi0OffsetY = async function trySetDvi1Dvi0OffsetY(\n  this: Session,\n  addr: number,\n  dvi1Dvi0OffsetY: number\n): Promise<ErrorType | null> {\n  const req = createSetDvi1Dvi0OffsetY(addr, false, dvi1Dvi0OffsetY);\n  return (await this.connection.trySend(req))?.ack ?? null;\n};\n"],"mappings":";;;;AASA,SAAwB,yBACtB,MACA,YACA,iBACoB;CAEpB,MAAM,MAAM,IAAI,QADF,aAAa,kBACC,GAAG,YAAY,oBAAoB;CAC/D,IAAI,cAAc;CAClB,IAAI;CACJ,OAAO;AACT;AACA,QAAQ,UAAU,qBAAqB,eAAe,mBAEpD,MACA,YACA,iBACe;CACf,MAAM,MAAM,yBAAyB,MAAM,YAAY,eAAe;CACtE,MAAM,KAAK,WAAW,KAAK,GAAG;AAChC;AACA,QAAQ,UAAU,wBAAwB,eAAe,sBAEvD,MACA,iBAC2B;CAC3B,MAAM,MAAM,yBAAyB,MAAM,OAAO,eAAe;CACjE,QAAQ,MAAM,KAAK,WAAW,QAAQ,GAAG,IAAI,OAAO;AACtD"}