{"version":3,"file":"FuncCard_ReadAllPowerPortCtrl.mjs","names":[],"sources":["../../generated/api/FuncCard_ReadAllPowerPortCtrl.ts"],"sourcesContent":["import { Packet, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    FuncCard_ReadAllPowerPortCtrl(addr: number): Promise<Buffer>;\n    tryFuncCard_ReadAllPowerPortCtrl(addr: number): Promise<Packet | null>;\n  }\n}\nexport default function createFuncCard_ReadAllPowerPortCtrl(addr: number): Request {\n  const req = new Request(\n    AddressMapping.FuncCard_PowerPortCtrlOccupancy * AddressMapping.FuncCard_PowerPortCtrlNum,\n    'FuncCard_ReadAllPowerPortCtrl'\n  );\n  req.destination = addr;\n  req.address = AddressMapping.FuncCard_PowerPortCtrlAddr;\n  return req;\n}\nSession.prototype.FuncCard_ReadAllPowerPortCtrl = async function FuncCard_ReadAllPowerPortCtrl(\n  this: Session,\n  addr: number\n): Promise<Buffer> {\n  const req = createFuncCard_ReadAllPowerPortCtrl(addr);\n  return (await this.connection.send(req)).data;\n};\nSession.prototype.tryFuncCard_ReadAllPowerPortCtrl =\n  async function tryFuncCard_ReadAllPowerPortCtrl(\n    this: Session,\n    addr: number\n  ): Promise<Packet | null> {\n    const req = createFuncCard_ReadAllPowerPortCtrl(addr);\n    return this.connection.trySend(req);\n  };\n"],"mappings":";;;;AASA,SAAwB,oCAAoC,MAAuB;CACjF,MAAM,MAAM,IAAI,eAEd,+BACF;CACA,IAAI,cAAc;CAClB,IAAI;CACJ,OAAO;AACT;AACA,QAAQ,UAAU,gCAAgC,eAAe,8BAE/D,MACiB;CACjB,MAAM,MAAM,oCAAoC,IAAI;CACpD,QAAQ,MAAM,KAAK,WAAW,KAAK,GAAG,GAAG;AAC3C;AACA,QAAQ,UAAU,mCAChB,eAAe,iCAEb,MACwB;CACxB,MAAM,MAAM,oCAAoC,IAAI;CACpD,OAAO,KAAK,WAAW,QAAQ,GAAG;AACpC"}