{"version":3,"file":"FuncCard_ReadPowerOperTime.mjs","names":[],"sources":["../../generated/api/FuncCard_ReadPowerOperTime.ts"],"sourcesContent":["import { Packet, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    FuncCard_ReadPowerOperTime(addr: number): Promise<Buffer>;\n    tryFuncCard_ReadPowerOperTime(addr: number): Promise<Packet | null>;\n  }\n}\nexport default function createFuncCard_ReadPowerOperTime(addr: number): Request {\n  const req = new Request(AddressMapping.FuncCard_OperPowerOccupancy, 'FuncCard_ReadPowerOperTime');\n  req.destination = addr;\n  req.address = AddressMapping.FuncCard_PowerOperTimeAddr;\n  return req;\n}\nSession.prototype.FuncCard_ReadPowerOperTime = async function FuncCard_ReadPowerOperTime(\n  this: Session,\n  addr: number\n): Promise<Buffer> {\n  const req = createFuncCard_ReadPowerOperTime(addr);\n  return (await this.connection.send(req)).data;\n};\nSession.prototype.tryFuncCard_ReadPowerOperTime = async function tryFuncCard_ReadPowerOperTime(\n  this: Session,\n  addr: number\n): Promise<Packet | null> {\n  const req = createFuncCard_ReadPowerOperTime(addr);\n  return this.connection.trySend(req);\n};\n"],"mappings":";;;;AASA,SAAwB,iCAAiC,MAAuB;CAC9E,MAAM,MAAM,IAAI,YAAoD,4BAA4B;CAChG,IAAI,cAAc;CAClB,IAAI;CACJ,OAAO;AACT;AACA,QAAQ,UAAU,6BAA6B,eAAe,2BAE5D,MACiB;CACjB,MAAM,MAAM,iCAAiC,IAAI;CACjD,QAAQ,MAAM,KAAK,WAAW,KAAK,GAAG,GAAG;AAC3C;AACA,QAAQ,UAAU,gCAAgC,eAAe,8BAE/D,MACwB;CACxB,MAAM,MAAM,iCAAiC,IAAI;CACjD,OAAO,KAAK,WAAW,QAAQ,GAAG;AACpC"}