{"version":3,"file":"SetLowAshCompensationTwo5253Value.mjs","names":[],"sources":["../../generated/api/SetLowAshCompensationTwo5253Value.ts"],"sourcesContent":["import { ErrorType, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    SetLowAshCompensationTwo5253Value(\n      addr: number,\n      portAddr: number,\n      scanBoardAddr: number,\n      bBroadcast: boolean,\n      LowAshCompensationTwo5253Value: number\n    ): Promise<void>;\n    trySetLowAshCompensationTwo5253Value(\n      addr: number,\n      portAddr: number,\n      scanBoardAddr: number,\n      LowAshCompensationTwo5253Value: number\n    ): Promise<ErrorType | null>;\n  }\n}\nexport default function createSetLowAshCompensationTwo5253Value<Broadcast extends boolean>(\n  addr: number,\n  portAddr: number,\n  scanBoardAddr: number,\n  bBroadcast: Broadcast,\n  LowAshCompensationTwo5253Value: number\n): Request<Broadcast> {\n  const req = new Request(\n    [LowAshCompensationTwo5253Value],\n    bBroadcast,\n    'SetLowAshCompensationTwo5253Value'\n  );\n  req.destination = addr;\n  req.deviceType = 1;\n  req.port = portAddr;\n  req.rcvIndex = scanBoardAddr;\n  req.address = AddressMapping.LowAshCompensationTwo5253Addr;\n  return req;\n}\nSession.prototype.SetLowAshCompensationTwo5253Value =\n  async function SetLowAshCompensationTwo5253Value(\n    this: Session,\n    addr: number,\n    portAddr: number,\n    scanBoardAddr: number,\n    bBroadcast: boolean,\n    LowAshCompensationTwo5253Value: number\n  ): Promise<void> {\n    const req = createSetLowAshCompensationTwo5253Value(\n      addr,\n      portAddr,\n      scanBoardAddr,\n      bBroadcast,\n      LowAshCompensationTwo5253Value\n    );\n    await this.connection.send(req);\n  };\nSession.prototype.trySetLowAshCompensationTwo5253Value =\n  async function trySetLowAshCompensationTwo5253Value(\n    this: Session,\n    addr: number,\n    portAddr: number,\n    scanBoardAddr: number,\n    LowAshCompensationTwo5253Value: number\n  ): Promise<ErrorType | null> {\n    const req = createSetLowAshCompensationTwo5253Value(\n      addr,\n      portAddr,\n      scanBoardAddr,\n      false,\n      LowAshCompensationTwo5253Value\n    );\n    return (await this.connection.trySend(req))?.ack ?? null;\n  };\n"],"mappings":";;;;AAoBA,SAAwB,wCACtB,MACA,UACA,eACA,YACA,gCACoB;CACpB,MAAM,MAAM,IAAI,QACd,CAAC,8BAA8B,GAC/B,YACA,mCACF;CACA,IAAI,cAAc;CAClB,IAAI,aAAa;CACjB,IAAI,OAAO;CACX,IAAI,WAAW;CACf,IAAI;CACJ,OAAO;AACT;AACA,QAAQ,UAAU,oCAChB,eAAe,kCAEb,MACA,UACA,eACA,YACA,gCACe;CACf,MAAM,MAAM,wCACV,MACA,UACA,eACA,YACA,8BACF;CACA,MAAM,KAAK,WAAW,KAAK,GAAG;AAChC;AACF,QAAQ,UAAU,uCAChB,eAAe,qCAEb,MACA,UACA,eACA,gCAC2B;CAC3B,MAAM,MAAM,wCACV,MACA,UACA,eACA,OACA,8BACF;CACA,QAAQ,MAAM,KAAK,WAAW,QAAQ,GAAG,IAAI,OAAO;AACtD"}