/**
 * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
 *
 * Do not edit this file as changes may cause incorrect behavior and will be lost
 * once the code is regenerated.
 *
 * @generated by codegen project: GenerateModuleCpp.js
 */

#include "NativeAhrsSpecJSI.h"

namespace facebook::react {

static jsi::Value __hostFunction_NativeAhrsCxxSpecJSI_startAhrs(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeAhrsCxxSpecJSI *>(&turboModule)->startAhrs(
    rt
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeAhrsCxxSpecJSI_stopAhrs(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeAhrsCxxSpecJSI *>(&turboModule)->stopAhrs(
    rt
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeAhrsCxxSpecJSI_resetAhrs(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeAhrsCxxSpecJSI *>(&turboModule)->resetAhrs(
    rt
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeAhrsCxxSpecJSI_levelAhrs(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeAhrsCxxSpecJSI *>(&turboModule)->levelAhrs(
    rt
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeAhrsCxxSpecJSI_setAhrsRate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeAhrsCxxSpecJSI *>(&turboModule)->setAhrsRate(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeAhrsCxxSpecJSI_setAhrsGain(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeAhrsCxxSpecJSI *>(&turboModule)->setAhrsGain(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeAhrsCxxSpecJSI_setAhrsRotation(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeAhrsCxxSpecJSI *>(&turboModule)->setAhrsRotation(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
  return jsi::Value::undefined();
}

NativeAhrsCxxSpecJSI::NativeAhrsCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
  : TurboModule("NativeAhrs", jsInvoker) {
  methodMap_["startAhrs"] = MethodMetadata {0, __hostFunction_NativeAhrsCxxSpecJSI_startAhrs};
  methodMap_["stopAhrs"] = MethodMetadata {0, __hostFunction_NativeAhrsCxxSpecJSI_stopAhrs};
  methodMap_["resetAhrs"] = MethodMetadata {0, __hostFunction_NativeAhrsCxxSpecJSI_resetAhrs};
  methodMap_["levelAhrs"] = MethodMetadata {0, __hostFunction_NativeAhrsCxxSpecJSI_levelAhrs};
  methodMap_["setAhrsRate"] = MethodMetadata {1, __hostFunction_NativeAhrsCxxSpecJSI_setAhrsRate};
  methodMap_["setAhrsGain"] = MethodMetadata {1, __hostFunction_NativeAhrsCxxSpecJSI_setAhrsGain};
  methodMap_["setAhrsRotation"] = MethodMetadata {1, __hostFunction_NativeAhrsCxxSpecJSI_setAhrsRotation};
}


} // namespace facebook::react
