{"version":3,"file":"ReadLowAshCompensationOne5253Value.mjs","names":[],"sources":["../../generated/api/ReadLowAshCompensationOne5253Value.ts"],"sourcesContent":["import { decodeUIntLE, Packet, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    ReadLowAshCompensationOne5253Value(\n      addr: number,\n      portAddr: number,\n      scanBoardAddr: number\n    ): Promise<number>;\n    tryReadLowAshCompensationOne5253Value(\n      addr: number,\n      portAddr: number,\n      scanBoardAddr: number\n    ): Promise<Packet | null>;\n  }\n}\nexport default function createReadLowAshCompensationOne5253Value(\n  addr: number,\n  portAddr: number,\n  scanBoardAddr: number\n): Request {\n  const req = new Request(\n    AddressMapping.LowAshCompensationOne5253Occupancy,\n    'ReadLowAshCompensationOne5253Value'\n  );\n  req.destination = addr;\n  req.deviceType = 1;\n  req.port = portAddr;\n  req.rcvIndex = scanBoardAddr;\n  req.address = AddressMapping.LowAshCompensationOne5253Addr;\n  return req;\n}\nSession.prototype.ReadLowAshCompensationOne5253Value =\n  async function ReadLowAshCompensationOne5253Value(\n    this: Session,\n    addr: number,\n    portAddr: number,\n    scanBoardAddr: number\n  ): Promise<number> {\n    const req = createReadLowAshCompensationOne5253Value(addr, portAddr, scanBoardAddr);\n    return decodeUIntLE(await this.connection.send(req));\n  };\nSession.prototype.tryReadLowAshCompensationOne5253Value =\n  async function tryReadLowAshCompensationOne5253Value(\n    this: Session,\n    addr: number,\n    portAddr: number,\n    scanBoardAddr: number\n  ): Promise<Packet | null> {\n    const req = createReadLowAshCompensationOne5253Value(addr, portAddr, scanBoardAddr);\n    return this.connection.trySend(req);\n  };\n"],"mappings":";;;;AAiBA,SAAwB,yCACtB,MACA,UACA,eACS;CACT,MAAM,MAAM,IAAI,WAEd,oCACF;CACA,IAAI,cAAc;CAClB,IAAI,aAAa;CACjB,IAAI,OAAO;CACX,IAAI,WAAW;CACf,IAAI;CACJ,OAAO;AACT;AACA,QAAQ,UAAU,qCAChB,eAAe,mCAEb,MACA,UACA,eACiB;CACjB,MAAM,MAAM,yCAAyC,MAAM,UAAU,aAAa;CAClF,OAAO,aAAa,MAAM,KAAK,WAAW,KAAK,GAAG,CAAC;AACrD;AACF,QAAQ,UAAU,wCAChB,eAAe,sCAEb,MACA,UACA,eACwB;CACxB,MAAM,MAAM,yCAAyC,MAAM,UAAU,aAAa;CAClF,OAAO,KAAK,WAAW,QAAQ,GAAG;AACpC"}