TeslasuitDocumentation
APIs

Overview

This page serves as your guide to the documentation: you'll find an overview of how everything is organized, recommended reading paths for newcomers, and direct links to every section you might need.

Reading flow#

If you're starting out, read the sections in this order. Each step links to a section overview, so this doubles as a guided tour.

  1. Getting started — link the SDK, connect a device, and reach your first subsystem.
  2. Main concepts — the mental model: what each subsystem senses or actuates, and the vocabulary the rest of the reference assumes.
  3. Examples — complete, runnable programs. The fastest way to feel the API on real hardware.
  4. API · Core then API · Subsystems — the header-by-header reference, for when you know what you want to build.

Already have a device connected? The Getting started page ends with a deeper reading flow tailored to running real code.

The full map#

1 · Introduction#

Set up and get oriented.

PageWhat's there
Overview (this page)How the docs are organized and where to start.
Getting startedRequirements, loading teslasuit_api at runtime, connecting a device, and accessing a subsystem.

2 · Main concepts#

What the hardware does — the ideas the API assumes.

PageWhat's there
OverviewA map of the XR5 subsystems with a per-topic reading list.
Haptics & EMSProgrammable electrical stimulation, from light touch through to muscle contractions driven by electrical muscle stimulation (EMS) and functional electrical stimulation (FES).
MocapFull-body motion capture from the suit's inertial measurement units (IMUs): skeleton, raw IMU, and biomechanical angles.
PPGOptical photoplethysmography (PPG) heart-rate sensing, with heart rate variability (HRV) and raw pulse signals.
Body & channel mapAn interactive tool showing how the suit addresses channels by anatomical bone. It is Python-first, but the C API follows the same layout mapping.

3 · API · Core#

The layer above subsystems — library lifecycle, device management, bone-channel mapping, and shared types.

PageWhat's there
Common Typests_types.h — structs, enums and type aliases shared by every module.
Core APIts_core_api.h — library init/uninit and version info.
Device APIts_device_api.h — device discovery, open/close, connection events.
Asset APIts_asset_api.h — load and manage haptic assets.
Mapping APIts_mapping_api.h — resolve anatomical bones to physical channels.

4 · API · Subsystems#

One header per device capability.

PageWhat's there
Haptic APIts_haptic_api.h — create, play and control haptic touches and playables.
Mocap APIts_mocap_api.h — stream raw IMU, skeleton and biomechanical data.
Biometry APIts_biometry_api.h — PPG and HRV biometrics.

5 · Examples#

Complete, compilable C program source code grouped by subsystem.

PageWhat's there
OverviewEvery runnable example, grouped by subsystem.
Play a haptic touchPlay your first touch on the suit.
Read heart rateRead live heart rate from a PPG node.
Measure HRVRead the Mean inter-beat interval from the PPG sensor.
Stream motion dataStream skeleton data and biomechanical angles.

Next: head to Getting started to link the SDK, connect a device, and play your first touch.