{"version":3,"file":"ReadSender_HardWareBackupInfos.mjs","names":[],"sources":["../../generated/api/ReadSender_HardWareBackupInfos.ts"],"sourcesContent":["import { Packet, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    ReadSender_HardWareBackupInfos(addr: number, dataLength: number): Promise<Buffer>;\n    tryReadSender_HardWareBackupInfos(addr: number, dataLength: number): Promise<Packet | null>;\n  }\n}\nexport default function createReadSender_HardWareBackupInfos(\n  addr: number,\n  dataLength: number\n): Request {\n  const req = new Request(dataLength, 'ReadSender_HardWareBackupInfos');\n  req.destination = addr;\n  req.address = AddressMapping.Sender_HardWareBackupInfoAddr;\n  return req;\n}\nSession.prototype.ReadSender_HardWareBackupInfos = async function ReadSender_HardWareBackupInfos(\n  this: Session,\n  addr: number,\n  dataLength: number\n): Promise<Buffer> {\n  const req = createReadSender_HardWareBackupInfos(addr, dataLength);\n  return (await this.connection.send(req)).data;\n};\nSession.prototype.tryReadSender_HardWareBackupInfos =\n  async function tryReadSender_HardWareBackupInfos(\n    this: Session,\n    addr: number,\n    dataLength: number\n  ): Promise<Packet | null> {\n    const req = createReadSender_HardWareBackupInfos(addr, dataLength);\n    return this.connection.trySend(req);\n  };\n"],"mappings":";;;;AASA,SAAwB,qCACtB,MACA,YACS;CACT,MAAM,MAAM,IAAI,QAAQ,YAAY,gCAAgC;CACpE,IAAI,cAAc;CAClB,IAAI;CACJ,OAAO;AACT;AACA,QAAQ,UAAU,iCAAiC,eAAe,+BAEhE,MACA,YACiB;CACjB,MAAM,MAAM,qCAAqC,MAAM,UAAU;CACjE,QAAQ,MAAM,KAAK,WAAW,KAAK,GAAG,GAAG;AAC3C;AACA,QAAQ,UAAU,oCAChB,eAAe,kCAEb,MACA,YACwB;CACxB,MAAM,MAAM,qCAAqC,MAAM,UAAU;CACjE,OAAO,KAAK,WAAW,QAAQ,GAAG;AACpC"}