{"version":3,"file":"FuncCard_ReadOutDeviceValue_2.mjs","names":[],"sources":["../../generated/api/FuncCard_ReadOutDeviceValue_2.ts"],"sourcesContent":["import { Packet, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    FuncCard_ReadOutDeviceValue_2(addr: number, dataLength: number): Promise<Buffer>;\n    tryFuncCard_ReadOutDeviceValue_2(addr: number, dataLength: number): Promise<Packet | null>;\n  }\n}\nexport default function createFuncCard_ReadOutDeviceValue_2(\n  addr: number,\n  dataLength: number\n): Request {\n  const req = new Request(dataLength, 'FuncCard_ReadOutDeviceValue_2');\n  req.destination = addr;\n  req.address = AddressMapping.FuncCard_ReadOutDeviceAddr;\n  return req;\n}\nSession.prototype.FuncCard_ReadOutDeviceValue_2 = async function FuncCard_ReadOutDeviceValue_2(\n  this: Session,\n  addr: number,\n  dataLength: number\n): Promise<Buffer> {\n  const req = createFuncCard_ReadOutDeviceValue_2(addr, dataLength);\n  return (await this.connection.send(req)).data;\n};\nSession.prototype.tryFuncCard_ReadOutDeviceValue_2 =\n  async function tryFuncCard_ReadOutDeviceValue_2(\n    this: Session,\n    addr: number,\n    dataLength: number\n  ): Promise<Packet | null> {\n    const req = createFuncCard_ReadOutDeviceValue_2(addr, dataLength);\n    return this.connection.trySend(req);\n  };\n"],"mappings":";;;;AASA,SAAwB,oCACtB,MACA,YACS;CACT,MAAM,MAAM,IAAI,QAAQ,YAAY,+BAA+B;CACnE,IAAI,cAAc;CAClB,IAAI;CACJ,OAAO;AACT;AACA,QAAQ,UAAU,gCAAgC,eAAe,8BAE/D,MACA,YACiB;CACjB,MAAM,MAAM,oCAAoC,MAAM,UAAU;CAChE,QAAQ,MAAM,KAAK,WAAW,KAAK,GAAG,GAAG;AAC3C;AACA,QAAQ,UAAU,mCAChB,eAAe,iCAEb,MACA,YACwB;CACxB,MAAM,MAAM,oCAAoC,MAAM,UAAU;CAChE,OAAO,KAAK,WAAW,QAAQ,GAAG;AACpC"}