{"version":3,"file":"FuncCard_ReadDelayTime_1.mjs","names":[],"sources":["../../generated/api/FuncCard_ReadDelayTime_1.ts"],"sourcesContent":["import { decodeUIntLE, Packet, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    FuncCard_ReadDelayTime_1(addr: number, portAddr: number, funcCardAddr: number): Promise<number>;\n    tryFuncCard_ReadDelayTime_1(\n      addr: number,\n      portAddr: number,\n      funcCardAddr: number\n    ): Promise<Packet | null>;\n  }\n}\nexport default function createFuncCard_ReadDelayTime_1(\n  addr: number,\n  portAddr: number,\n  funcCardAddr: number\n): Request {\n  const req = new Request(AddressMapping.FuncCard_DelayTimeOccupancy, 'FuncCard_ReadDelayTime_1');\n  req.destination = addr;\n  req.deviceType = 2;\n  req.port = portAddr;\n  req.rcvIndex = funcCardAddr;\n  req.address = AddressMapping.FuncCard_DelayTimeAddr;\n  return req;\n}\nSession.prototype.FuncCard_ReadDelayTime_1 = async function FuncCard_ReadDelayTime_1(\n  this: Session,\n  addr: number,\n  portAddr: number,\n  funcCardAddr: number\n): Promise<number> {\n  const req = createFuncCard_ReadDelayTime_1(addr, portAddr, funcCardAddr);\n  return decodeUIntLE(await this.connection.send(req));\n};\nSession.prototype.tryFuncCard_ReadDelayTime_1 = async function tryFuncCard_ReadDelayTime_1(\n  this: Session,\n  addr: number,\n  portAddr: number,\n  funcCardAddr: number\n): Promise<Packet | null> {\n  const req = createFuncCard_ReadDelayTime_1(addr, portAddr, funcCardAddr);\n  return this.connection.trySend(req);\n};\n"],"mappings":";;;;AAaA,SAAwB,+BACtB,MACA,UACA,cACS;CACT,MAAM,MAAM,IAAI,WAAoD,0BAA0B;CAC9F,IAAI,cAAc;CAClB,IAAI,aAAa;CACjB,IAAI,OAAO;CACX,IAAI,WAAW;CACf,IAAI;CACJ,OAAO;AACT;AACA,QAAQ,UAAU,2BAA2B,eAAe,yBAE1D,MACA,UACA,cACiB;CACjB,MAAM,MAAM,+BAA+B,MAAM,UAAU,YAAY;CACvE,OAAO,aAAa,MAAM,KAAK,WAAW,KAAK,GAAG,CAAC;AACrD;AACA,QAAQ,UAAU,8BAA8B,eAAe,4BAE7D,MACA,UACA,cACwB;CACxB,MAAM,MAAM,+BAA+B,MAAM,UAAU,YAAY;CACvE,OAAO,KAAK,WAAW,QAAQ,GAAG;AACpC"}