MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / get_sensor_config

Method get_sensor_config

src/board_controller/muse/muse_athena.cpp:38–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38bool MuseAthena::get_sensor_config (uint8_t tag, SensorConfig &config)
39{
40 switch (tag)
41 {
42 case 0x11:
43 config = SensorConfig (SensorType::EEG, 4, 4, 256.0, 28);
44 return true;
45 case 0x12:
46 config = SensorConfig (SensorType::EEG, 8, 2, 256.0, 28);
47 return true;
48 case 0x34:
49 config = SensorConfig (SensorType::OPTICS, 4, 3, 64.0, 30);
50 return true;
51 case 0x35:
52 config = SensorConfig (SensorType::OPTICS, 8, 2, 64.0, 40);
53 return true;
54 case 0x36:
55 config = SensorConfig (SensorType::OPTICS, 16, 1, 64.0, 40);
56 return true;
57 case 0x47:
58 config = SensorConfig (SensorType::ACC_GYRO, 6, 3, 52.0, 36);
59 return true;
60 case 0x53:
61 // DRL/REF: 2 channels, 6 samples at 32 Hz. BrainFlow does not expose it for
62 // Muse Athena, but the fixed length is needed to skip the block correctly.
63 config = SensorConfig (SensorType::UNKNOWN, 2, 6, 32.0, 24);
64 return true;
65 case 0x88:
66 config = SensorConfig (SensorType::BATTERY, 10, 1, 1.0, 20);
67 return true;
68 case 0x98:
69 config = SensorConfig (SensorType::BATTERY, 10, 1, 0.1, 20);
70 return true;
71 default:
72 return false;
73 }
74}
75
76int MuseAthena::get_optics_canonical_index (uint8_t tag, int channel)
77{

Callers

nothing calls this directly

Calls 1

SensorConfigClass · 0.85

Tested by

no test coverage detected