{"version":3,"file":"ReadSender_12bitGammaValue.mjs","names":[],"sources":["../../generated/api/ReadSender_12bitGammaValue.ts"],"sourcesContent":["import { decodeUIntLE, Packet, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    ReadSender_12bitGammaValue(addr: number): Promise<number>;\n    tryReadSender_12bitGammaValue(addr: number): Promise<Packet | null>;\n  }\n}\nexport default function createReadSender_12bitGammaValue(addr: number): Request {\n  const req = new Request(\n    AddressMapping.Sender_12bitGammaValueOccupancy,\n    'ReadSender_12bitGammaValue'\n  );\n  req.destination = addr;\n  req.address = AddressMapping.Sender_12bitGammaValueAddr;\n  return req;\n}\nSession.prototype.ReadSender_12bitGammaValue = async function ReadSender_12bitGammaValue(\n  this: Session,\n  addr: number\n): Promise<number> {\n  const req = createReadSender_12bitGammaValue(addr);\n  return decodeUIntLE(await this.connection.send(req));\n};\nSession.prototype.tryReadSender_12bitGammaValue = async function tryReadSender_12bitGammaValue(\n  this: Session,\n  addr: number\n): Promise<Packet | null> {\n  const req = createReadSender_12bitGammaValue(addr);\n  return this.connection.trySend(req);\n};\n"],"mappings":";;;;AASA,SAAwB,iCAAiC,MAAuB;CAC9E,MAAM,MAAM,IAAI,WAEd,4BACF;CACA,IAAI,cAAc;CAClB,IAAI;CACJ,OAAO;AACT;AACA,QAAQ,UAAU,6BAA6B,eAAe,2BAE5D,MACiB;CACjB,MAAM,MAAM,iCAAiC,IAAI;CACjD,OAAO,aAAa,MAAM,KAAK,WAAW,KAAK,GAAG,CAAC;AACrD;AACA,QAAQ,UAAU,gCAAgC,eAAe,8BAE/D,MACwB;CACxB,MAAM,MAAM,iCAAiC,IAAI;CACjD,OAAO,KAAK,WAAW,QAAQ,GAAG;AACpC"}