{"version":3,"file":"GetGrayCoefficientEN.mjs","names":[],"sources":["../../generated/api/GetGrayCoefficientEN.ts"],"sourcesContent":["import { decodeUIntLE, Packet, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    GetGrayCoefficientEN(Sender: number, portAddr: number, Scan: number): Promise<number>;\n    tryGetGrayCoefficientEN(Sender: number, portAddr: number, Scan: number): Promise<Packet | null>;\n  }\n}\nexport default function createGetGrayCoefficientEN(\n  Sender: number,\n  portAddr: number,\n  Scan: number\n): Request {\n  const req = new Request(AddressMapping.GrayCoefficientENAddrOccupancy, 'GetGrayCoefficientEN');\n  req.destination = Sender;\n  req.deviceType = 1;\n  req.port = portAddr;\n  req.rcvIndex = Scan;\n  req.address = AddressMapping.GrayCoefficientENAddr;\n  return req;\n}\nSession.prototype.GetGrayCoefficientEN = async function GetGrayCoefficientEN(\n  this: Session,\n  Sender: number,\n  portAddr: number,\n  Scan: number\n): Promise<number> {\n  const req = createGetGrayCoefficientEN(Sender, portAddr, Scan);\n  return decodeUIntLE(await this.connection.send(req));\n};\nSession.prototype.tryGetGrayCoefficientEN = async function tryGetGrayCoefficientEN(\n  this: Session,\n  Sender: number,\n  portAddr: number,\n  Scan: number\n): Promise<Packet | null> {\n  const req = createGetGrayCoefficientEN(Sender, portAddr, Scan);\n  return this.connection.trySend(req);\n};\n"],"mappings":";;;;AASA,SAAwB,2BACtB,QACA,UACA,MACS;CACT,MAAM,MAAM,IAAI,WAAuD,sBAAsB;CAC7F,IAAI,cAAc;CAClB,IAAI,aAAa;CACjB,IAAI,OAAO;CACX,IAAI,WAAW;CACf,IAAI;CACJ,OAAO;AACT;AACA,QAAQ,UAAU,uBAAuB,eAAe,qBAEtD,QACA,UACA,MACiB;CACjB,MAAM,MAAM,2BAA2B,QAAQ,UAAU,IAAI;CAC7D,OAAO,aAAa,MAAM,KAAK,WAAW,KAAK,GAAG,CAAC;AACrD;AACA,QAAQ,UAAU,0BAA0B,eAAe,wBAEzD,QACA,UACA,MACwB;CACxB,MAAM,MAAM,2BAA2B,QAAQ,UAAU,IAAI;CAC7D,OAAO,KAAK,WAAW,QAAQ,GAAG;AACpC"}