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