{"version":3,"file":"ReadDviOf1600OffestInfo.cjs","names":["Request"],"sources":["../../generated/api/ReadDviOf1600OffestInfo.ts"],"sourcesContent":["import { Packet, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    ReadDviOf1600OffestInfo(addr: number): Promise<Buffer>;\n    tryReadDviOf1600OffestInfo(addr: number): Promise<Packet | null>;\n  }\n}\nexport default function createReadDviOf1600OffestInfo(addr: number): Request {\n  const req = new Request(16, 'ReadDviOf1600OffestInfo');\n  req.destination = addr;\n  req.address = AddressMapping.DVIOfOffsetInfoAddr;\n  return req;\n}\nSession.prototype.ReadDviOf1600OffestInfo = async function ReadDviOf1600OffestInfo(\n  this: Session,\n  addr: number\n): Promise<Buffer> {\n  const req = createReadDviOf1600OffestInfo(addr);\n  return (await this.connection.send(req)).data;\n};\nSession.prototype.tryReadDviOf1600OffestInfo = async function tryReadDviOf1600OffestInfo(\n  this: Session,\n  addr: number\n): Promise<Packet | null> {\n  const req = createReadDviOf1600OffestInfo(addr);\n  return this.connection.trySend(req);\n};\n"],"mappings":";;;;;AASA,SAAwB,8BAA8B,MAAuB;CAC3E,MAAM,MAAM,IAAIA,wBAAQ,IAAI,yBAAyB;CACrD,IAAI,cAAc;CAClB,IAAI;CACJ,OAAO;AACT;AACA,wBAAQ,UAAU,0BAA0B,eAAe,wBAEzD,MACiB;CACjB,MAAM,MAAM,8BAA8B,IAAI;CAC9C,QAAQ,MAAM,KAAK,WAAW,KAAK,GAAG,GAAG;AAC3C;AACA,wBAAQ,UAAU,6BAA6B,eAAe,2BAE5D,MACwB;CACxB,MAAM,MAAM,8BAA8B,IAAI;CAC9C,OAAO,KAAK,WAAW,QAAQ,GAAG;AACpC"}