DUNE: Uniform Navigational Environment
2019.02.0
|
Message Parser for SADC.
Classes | |
struct | SADCState |
Public Types | |
enum | SADCParserStates { PS_PREAMBLE, PS_DATA, PS_CS } |
Public Member Functions | |
DriverSADC (void) | |
~DriverSADC (void) | |
bool | parse (uint8_t byte) |
bool | translate (void) |
std::string | translate_feadback (void) |
char * | enable_output (void) |
char * | disable_output (void) |
char * | disable_channel (int channel) |
char * | enable_channel (int channel) |
char * | enable_auto_gain (int channel) |
char * | set_sample_ps (int value) |
char * | set_number_sample_sw (int value) |
char * | set_min_change_gain (int channel, float value) |
char * | set_max_change_gain (int channel, float value) |
char * | fix_gain (int channel, int value) |
Public Attributes | |
SADCState | m_sadc |
|
inline |
|
inline |
|
inline |
Disable Channel ADC.
Referenced by Sensors::SADC::Task::config_SADC().
|
inline |
Disable Output data of SADC.
Referenced by Sensors::SADC::Task::check_connection_sadc(), Sensors::SADC::Task::config_SADC(), and Sensors::SADC::Task::onResourceRelease().
|
inline |
Enable auto-gain in Channel ADC.
Referenced by Sensors::SADC::Task::config_SADC().
|
inline |
Enable Channel ADC.
Referenced by Sensors::SADC::Task::config_SADC().
|
inline |
Enable Output data of SADC.
Referenced by Sensors::SADC::Task::check_connection_sadc(), Sensors::SADC::Task::config_SADC(), and Sensors::SADC::Task::onResourceRelease().
|
inline |
Disable auto-gain in channel, define static gain.
Referenced by Sensors::SADC::Task::config_SADC().
|
inline |
Parse message received.
References PS_CS, PS_DATA, and PS_PREAMBLE.
Referenced by Sensors::SADC::Task::checkSerialPort().
|
inline |
Set maximum voltage to switch auto-gain.
Referenced by Sensors::SADC::Task::config_SADC().
|
inline |
Set minimum voltage to switch auto-gain.
Referenced by Sensors::SADC::Task::config_SADC().
|
inline |
Set number of sample before switch auto-gain.
Referenced by Sensors::SADC::Task::config_SADC().
|
inline |
Set number of sample/second.
Referenced by Sensors::SADC::Task::config_SADC().
|
inline |
Filter data received of SADC board.
References Sensors::SADC::DriverSADC::SADCState::channel, Sensors::SADC::DriverSADC::SADCState::gain, m_sadc, and Sensors::SADC::DriverSADC::SADCState::value.
Referenced by Sensors::SADC::Task::processInput().
|
inline |
Referenced by Sensors::SADC::Task::processInput().
SADCState Sensors::SADC::DriverSADC::m_sadc |
SADC state.
Referenced by Sensors::SADC::Task::processInput(), and translate().