mirror of
https://github.com/TheusHen/EEGFrontier.git
synced 2026-04-13 15:05:49 +00:00
26 lines
684 B
C
26 lines
684 B
C
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
|
|
void adsSendCommand(uint8_t cmd);
|
|
uint8_t adsReadRegister(uint8_t reg);
|
|
void adsWriteRegister(uint8_t reg, uint8_t value);
|
|
void adsReadRegisters(uint8_t startReg, uint8_t count, uint8_t* dest);
|
|
|
|
void adsHardwareReset();
|
|
bool adsConfigureRegisters();
|
|
bool adsInitOnce();
|
|
bool adsInitRobust(uint8_t attempts = 3);
|
|
|
|
void adsStartStreaming();
|
|
void adsStopStreaming();
|
|
bool adsReadDataFrame15(uint8_t* frame);
|
|
|
|
bool handleOneSampleFrame();
|
|
void recoverAdsIfNeeded();
|
|
|
|
bool adsSetInternalTestSignal(bool enable);
|
|
bool adsRunInternalSelfTest(uint8_t frames = 32);
|
|
bool adsSetLeadOffDiagnostics(bool enable);
|
|
int32_t adsCountsToMicrovolts(int32_t counts);
|