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