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