{"version":3,"file":"ReadBlankingTime5253Value.mjs","names":[],"sources":["../../generated/api/ReadBlankingTime5253Value.ts"],"sourcesContent":["import { decodeUIntLE, Packet, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    ReadBlankingTime5253Value(\n      addr: number,\n      portAddr: number,\n      scanBoardAddr: number\n    ): Promise<number>;\n    tryReadBlankingTime5253Value(\n      addr: number,\n      portAddr: number,\n      scanBoardAddr: number\n    ): Promise<Packet | null>;\n  }\n}\nexport default function createReadBlankingTime5253Value(\n  addr: number,\n  portAddr: number,\n  scanBoardAddr: number\n): Request {\n  const req = new Request(AddressMapping.BlankingTime5253Occupancy, 'ReadBlankingTime5253Value');\n  req.destination = addr;\n  req.deviceType = 1;\n  req.port = portAddr;\n  req.rcvIndex = scanBoardAddr;\n  req.address = AddressMapping.BlankingTime5253Addr;\n  return req;\n}\nSession.prototype.ReadBlankingTime5253Value = async function ReadBlankingTime5253Value(\n  this: Session,\n  addr: number,\n  portAddr: number,\n  scanBoardAddr: number\n): Promise<number> {\n  const req = createReadBlankingTime5253Value(addr, portAddr, scanBoardAddr);\n  return decodeUIntLE(await this.connection.send(req));\n};\nSession.prototype.tryReadBlankingTime5253Value = async function tryReadBlankingTime5253Value(\n  this: Session,\n  addr: number,\n  portAddr: number,\n  scanBoardAddr: number\n): Promise<Packet | null> {\n  const req = createReadBlankingTime5253Value(addr, portAddr, scanBoardAddr);\n  return this.connection.trySend(req);\n};\n"],"mappings":";;;;AAiBA,SAAwB,gCACtB,MACA,UACA,eACS;CACT,MAAM,MAAM,IAAI,WAAkD,2BAA2B;CAC7F,IAAI,cAAc;CAClB,IAAI,aAAa;CACjB,IAAI,OAAO;CACX,IAAI,WAAW;CACf,IAAI;CACJ,OAAO;AACT;AACA,QAAQ,UAAU,4BAA4B,eAAe,0BAE3D,MACA,UACA,eACiB;CACjB,MAAM,MAAM,gCAAgC,MAAM,UAAU,aAAa;CACzE,OAAO,aAAa,MAAM,KAAK,WAAW,KAAK,GAAG,CAAC;AACrD;AACA,QAAQ,UAAU,+BAA+B,eAAe,6BAE9D,MACA,UACA,eACwB;CACxB,MAAM,MAAM,gCAAgC,MAAM,UAAU,aAAa;CACzE,OAAO,KAAK,WAAW,QAAQ,GAAG;AACpC"}