{"version":3,"file":"ReadSenderDVIStatus.cjs","names":["Request"],"sources":["../../generated/api/ReadSenderDVIStatus.ts"],"sourcesContent":["import { decodeUIntLE, Packet, Request, Session } from '@novastar/codec';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    ReadSenderDVIStatus(addr: number): Promise<number>;\n    tryReadSenderDVIStatus(addr: number): Promise<Packet | null>;\n  }\n}\nexport default function createReadSenderDVIStatus(addr: number): Request {\n  const req = new Request(1, 'ReadSenderDVIStatus');\n  req.destination = addr;\n  req.address = 33554455;\n  return req;\n}\nSession.prototype.ReadSenderDVIStatus = async function ReadSenderDVIStatus(\n  this: Session,\n  addr: number\n): Promise<number> {\n  const req = createReadSenderDVIStatus(addr);\n  return decodeUIntLE(await this.connection.send(req));\n};\nSession.prototype.tryReadSenderDVIStatus = async function tryReadSenderDVIStatus(\n  this: Session,\n  addr: number\n): Promise<Packet | null> {\n  const req = createReadSenderDVIStatus(addr);\n  return this.connection.trySend(req);\n};\n"],"mappings":";;;;AAQA,SAAwB,0BAA0B,MAAuB;CACvE,MAAM,MAAM,IAAIA,wBAAQ,GAAG,qBAAqB;CAChD,IAAI,cAAc;CAClB,IAAI,UAAU;CACd,OAAO;AACT;AACA,wBAAQ,UAAU,sBAAsB,eAAe,oBAErD,MACiB;CACjB,MAAM,MAAM,0BAA0B,IAAI;CAC1C,yCAAoB,MAAM,KAAK,WAAW,KAAK,GAAG,CAAC;AACrD;AACA,wBAAQ,UAAU,yBAAyB,eAAe,uBAExD,MACwB;CACxB,MAAM,MAAM,0BAA0B,IAAI;CAC1C,OAAO,KAAK,WAAW,QAAQ,GAAG;AACpC"}