{"version":3,"file":"ReadIrregularCabinetDataGroupOutputInfo.mjs","names":[],"sources":["../../generated/api/ReadIrregularCabinetDataGroupOutputInfo.ts"],"sourcesContent":["import { Packet, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    ReadIrregularCabinetDataGroupOutputInfo(\n      addr: number,\n      portAddr: number,\n      scanBoardAddr: number,\n      dataLength: number\n    ): Promise<Buffer>;\n    tryReadIrregularCabinetDataGroupOutputInfo(\n      addr: number,\n      portAddr: number,\n      scanBoardAddr: number,\n      dataLength: number\n    ): Promise<Packet | null>;\n  }\n}\nexport default function createReadIrregularCabinetDataGroupOutputInfo(\n  addr: number,\n  portAddr: number,\n  scanBoardAddr: number,\n  dataLength: number\n): Request {\n  const req = new Request(dataLength, 'ReadIrregularCabinetDataGroupOutputInfo');\n  req.destination = addr;\n  req.deviceType = 1;\n  req.port = portAddr;\n  req.rcvIndex = scanBoardAddr;\n  req.address = AddressMapping.IrRegular_DataGroupOutputInfoAddr;\n  return req;\n}\nSession.prototype.ReadIrregularCabinetDataGroupOutputInfo =\n  async function ReadIrregularCabinetDataGroupOutputInfo(\n    this: Session,\n    addr: number,\n    portAddr: number,\n    scanBoardAddr: number,\n    dataLength: number\n  ): Promise<Buffer> {\n    const req = createReadIrregularCabinetDataGroupOutputInfo(\n      addr,\n      portAddr,\n      scanBoardAddr,\n      dataLength\n    );\n    return (await this.connection.send(req)).data;\n  };\nSession.prototype.tryReadIrregularCabinetDataGroupOutputInfo =\n  async function tryReadIrregularCabinetDataGroupOutputInfo(\n    this: Session,\n    addr: number,\n    portAddr: number,\n    scanBoardAddr: number,\n    dataLength: number\n  ): Promise<Packet | null> {\n    const req = createReadIrregularCabinetDataGroupOutputInfo(\n      addr,\n      portAddr,\n      scanBoardAddr,\n      dataLength\n    );\n    return this.connection.trySend(req);\n  };\n"],"mappings":";;;;AAmBA,SAAwB,8CACtB,MACA,UACA,eACA,YACS;CACT,MAAM,MAAM,IAAI,QAAQ,YAAY,yCAAyC;CAC7E,IAAI,cAAc;CAClB,IAAI,aAAa;CACjB,IAAI,OAAO;CACX,IAAI,WAAW;CACf,IAAI;CACJ,OAAO;AACT;AACA,QAAQ,UAAU,0CAChB,eAAe,wCAEb,MACA,UACA,eACA,YACiB;CACjB,MAAM,MAAM,8CACV,MACA,UACA,eACA,UACF;CACA,QAAQ,MAAM,KAAK,WAAW,KAAK,GAAG,GAAG;AAC3C;AACF,QAAQ,UAAU,6CAChB,eAAe,2CAEb,MACA,UACA,eACA,YACwB;CACxB,MAAM,MAAM,8CACV,MACA,UACA,eACA,UACF;CACA,OAAO,KAAK,WAAW,QAAQ,GAAG;AACpC"}