{"version":3,"file":"SetColorAdjustMatrixAndDataNew.mjs","names":[],"sources":["../../generated/api/SetColorAdjustMatrixAndDataNew.ts"],"sourcesContent":["import { ErrorType, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    SetColorAdjustMatrixAndDataNew(\n      addr: number,\n      portAddr: number,\n      scanBoardAddr: number,\n      bBroadcast: boolean,\n      byteData: number\n    ): Promise<void>;\n    trySetColorAdjustMatrixAndDataNew(\n      addr: number,\n      portAddr: number,\n      scanBoardAddr: number,\n      byteData: number\n    ): Promise<ErrorType | null>;\n  }\n}\nexport default function createSetColorAdjustMatrixAndDataNew<Broadcast extends boolean>(\n  addr: number,\n  portAddr: number,\n  scanBoardAddr: number,\n  bBroadcast: Broadcast,\n  byteData: number\n): Request<Broadcast> {\n  const req = new Request([byteData], bBroadcast, 'SetColorAdjustMatrixAndDataNew');\n  req.destination = addr;\n  req.deviceType = 1;\n  req.port = portAddr;\n  req.rcvIndex = scanBoardAddr;\n  req.address = AddressMapping.ColorAdjustMatrixAndEnableAddr;\n  return req;\n}\nSession.prototype.SetColorAdjustMatrixAndDataNew = async function SetColorAdjustMatrixAndDataNew(\n  this: Session,\n  addr: number,\n  portAddr: number,\n  scanBoardAddr: number,\n  bBroadcast: boolean,\n  byteData: number\n): Promise<void> {\n  const req = createSetColorAdjustMatrixAndDataNew(\n    addr,\n    portAddr,\n    scanBoardAddr,\n    bBroadcast,\n    byteData\n  );\n  await this.connection.send(req);\n};\nSession.prototype.trySetColorAdjustMatrixAndDataNew =\n  async function trySetColorAdjustMatrixAndDataNew(\n    this: Session,\n    addr: number,\n    portAddr: number,\n    scanBoardAddr: number,\n    byteData: number\n  ): Promise<ErrorType | null> {\n    const req = createSetColorAdjustMatrixAndDataNew(\n      addr,\n      portAddr,\n      scanBoardAddr,\n      false,\n      byteData\n    );\n    return (await this.connection.trySend(req))?.ack ?? null;\n  };\n"],"mappings":";;;;AAoBA,SAAwB,qCACtB,MACA,UACA,eACA,YACA,UACoB;CACpB,MAAM,MAAM,IAAI,QAAQ,CAAC,QAAQ,GAAG,YAAY,gCAAgC;CAChF,IAAI,cAAc;CAClB,IAAI,aAAa;CACjB,IAAI,OAAO;CACX,IAAI,WAAW;CACf,IAAI;CACJ,OAAO;AACT;AACA,QAAQ,UAAU,iCAAiC,eAAe,+BAEhE,MACA,UACA,eACA,YACA,UACe;CACf,MAAM,MAAM,qCACV,MACA,UACA,eACA,YACA,QACF;CACA,MAAM,KAAK,WAAW,KAAK,GAAG;AAChC;AACA,QAAQ,UAAU,oCAChB,eAAe,kCAEb,MACA,UACA,eACA,UAC2B;CAC3B,MAAM,MAAM,qCACV,MACA,UACA,eACA,OACA,QACF;CACA,QAAQ,MAAM,KAAK,WAAW,QAAQ,GAAG,IAAI,OAAO;AACtD"}