orphe-core-insole - v0.4.0
    Preparing search index...

    Class CoreProfile

    デバイス固有差分(CORE / INSOLE)の注入点。 OrpheCoreInsole はこの interface だけに依存し、接続シーケンスとパースを委譲する。

    Implements

    Index
    defaultNotificationType: "STEP_ANALYSIS" = 'STEP_ANALYSIS'

    begin() の type 省略時に使う notification type

    device_information: CoreDeviceInformation | null = null

    begin() で取得したデバイス設定。parse() の換算レンジに使う

    kind: "core" = 'core'

    'core' | 'insole' など

    • 接続シーケンス。transport の read/write/startNotify だけで記述する。 resolve = 成功(値は begin() の戻り値になる)/ reject = 失敗。 自動再接続時にも同じシーケンスが再実行される。

      Parameters

      Returns Promise<string>

    • このデバイスが提供しうる取得モードの一覧(FW による絞り込み前)。 未実装なら FW によるモード制限を行わない。

      Returns DeviceMode[]

    • 通知パケットをパースする。対象外の uuid や不正パケットは null を返す。 返したサンプル列(TFields の部分集合)は SampleEmitter へそのまま配送される。

      Parameters

      • uuid: string
      • data: DataView

      Returns Partial<CoreSensorFields>[] | null

    • resetAnalysisLogs 相当の内部カウンタ初期化

      Returns void

    • chooser の namePrefix フィルタを変える(次に chooser を開くときから効く。undefined で外す)

      Parameters

      • namePrefix: string | undefined

      Returns void

    • デバイス記憶の localStorage キー(スロット id ごとに一意)

      Parameters

      • id: number

      Returns string