Go to the documentation of this file.
13 printf(
"\n\nADC settings:\n");
18 printf(
"\n\nTransducer settings:\n");
23 printf(
"\n\nSignal processing settings:\n");
24 printf(
"GetParameterSignalProcessingTemperature_f: %.6f\n",
26 printf(
"GetParameterSignalProcessingHumidity_u8: %d\n",
28 printf(
"GetParameterSignalProcessingNoiseLevelThresholdFactor_f: %f\n",
30 printf(
"GetParameterSignalProcessingNoiseRatioThreshold_u8: %d\n",
32 printf(
"GetParameterSignalProcessingEnableNearFieldDetection_b: %d\n",
34 printf(
"GetParameterSignalProcessingEnableMultipathFilter_b: %d\n",
36 printf(
"GetParameterSignalProcessingEnableAutoGain_b: %d\n",
40 printf(
"\n\nSystem settings:\n");
46 printf(
"GetParameterSystemUniqueID_t:");
48 for (
int Index = 0; Index < 3; Index++)
51 for (
int i = 0; i < 4; i++)
53 printf(
" %02X", UniqueID_t.
values[i]);
68 printf(
"Bootloader version: ");
71 printf(
"Application version: ");
74 printf(
"Hardware version: ");
77 printf(
"Signal Processing Library version: ");
80 printf(
"Communication Library version: ");
89 printf(
"---------------------------\n");
97 printf(
"1-D Points: \n");
103 printf(
"3-D Points: \n");
111 printf(
"---------------------------\n");
118 printf(
"ADC-Session closed\n");
119 printf(
"ReceivedDumpSize_u32:%d\n", DumpSize_u32);
120 for (uint32_t Idx_u32 = 0; Idx_u32 < DumpSize_u32; Idx_u32++)
123 if (Idx_u32 % 48 == 0)
136 fptr = fopen(filepath,
"wb");
140 printf(
"\033[0;31mADC Dump file open error!\n\033[0m");
144 size_t number_of_bytes_written = fwrite(ADCDump->
DumpBlob_pu8, 1, DumpSize_u32, fptr);
146 if (number_of_bytes_written == DumpSize_u32)
147 printf(
"Save sucessful\n");
149 printf(
"\033[0;31mADC Dump file write error!\n\033[0m");
161 printf(
"\033[0;34m");
164 printf(
"\033[0;32m");
167 printf(
"\033[0;33m");
170 printf(
"\033[0;31m");
175 printf(
"%s\n", message_buffer);
183 for (
int i = 0; i < NumberOfSensors_u8; i++)
185 printf(
"Sensor %d has ID: %02X\n", i, KnownSensors_pu16[i].InterfaceSensorId_u16);
#define MAX_PARSED_LOG_MESSAGE_LEN
SensorMode_t GetParameterSystemSensorMode_t()
Blocking Request to read the Sensor Mode from current sensor.
SensorState_t GetParameterSystemSensorState_t()
Blocking Request to read the Sensor State from current sensor.
@ VERSION_BYTE_SIG_PRO_LIB
ResetReason_t GetParameterSystemResetReason_t()
Blocking Request to read the last Reset Reason from current sensor.
Version_t RequestVersion_t(VersionByte_t TargetComponent_t)
Blocking - Request transmition of the current version of selected component from selected sensor.
void PrintADCBlobData(ADCDump_t *ADCDump)
UID_t GetParameterSystemUniqueID_t(uint8_t Index_u8)
Blocking Request to read the Unique ID from current sensor.
uint8_t GetParameterTransducerNumOfPulses_u8()
Blocking Request to read the current Transducer Number of Pulses from current sensor.
Sensor_t * GetKnownSensors()
Returns pointer to array containing all known sensors. With GetNumberOfKnownSensors() users can get l...
void PrintVersion(Version_t Version_t)
bool GetParameterSignalProcessingEnableNearFieldDetection_b()
Blocking Request to read whether near field detection is enabled in the current sensor.
float GetParameterSignalProcessingTemperature_f()
Blocking Request to read the current Transducer Temperature setting from current sensor.
bool GetParameterSignalProcessingEnableAutoGain_b()
Blocking Request to read whether auto gain is enabled in the current sensor.
uint8_t GetParameterTransducerVolume_u8()
Blocking Request to read the current Transducer Volume from current sensor.
SessionState_t SessionState
LogLevel_t GetParameterSystemLogLevel_t()
Blocking Request to read the current System Log Level from current sensor.
uint16_t VectorLength_u16
bool GetParameterSystemCalibrationState_b()
Blocking Request to read whether the current sensor has been calibrated.
void SaveADCBlobData(ADCDump_t *ADCDump, const char *filepath)
uint8_t GetParameterADCFixedFrameRate_u8()
Blocking Request to read the current set ADC-Framerate from current sensor.
Point1D_t Point1D_tp[MAX_NUMBER_OF_POINTS_PER_SESSION]
uint8_t GetNumberOfKnownSensors()
Returns number of known sensors. With GetKnownSensors() users an pointer to an array containing the I...
uint8_t NumberOfPoints_u8
void ParseLogMessageToText(char *Output_p8, uint16_t SenderId_u16, const uint8_t *ReceivedPayload_pu8)
Parses log messages into human readable text.
uint16_t GetParameterSystemNodeID_u16()
Blocking Request to read the current NodeID setting from current sensor.
uint8_t GetParameterSignalProcessingHumidity_u8()
Blocking Request to read the current Transducer Humidity setting from current sensor.
uint32_t ReceivedDumpSize_u32
void PrintSessionData(Sensor_Session_t *Session)
bool GetParameterADCUseFixedFrameRate_b()
Blocking Request to read the "Use fixed framerate" value from current sensor.
bool GetParameterSignalProcessingEnableMultipathFilter_b()
Blocking Request to read whether the multipath filter is enabled in the current sensor.
@ VERSION_BYTE_BOOTLOADER
#define LOGGING_SEVERITY_BYTE
uint8_t GetParameterSignalProcessingNoiseRatioThreshold_u8()
Blocking Request to read the current Noise Ratio Threshold from current sensor.
float GetParameterSystemMCUTemperature_f()
Blocking Request to read the current MCU Temperature from current sensor.
Library containing common functions that are used in the various examples.
float GetParameterSignalProcessingNoiseLevelThresholdFactor_f()
Blocking Request to read the current Noise Level Threshold Factor from current sensor.
Point3D_t Point3D_tp[MAX_NUMBER_OF_POINTS_PER_SESSION]
void PrintLogMessage(uint16_t SenderId_u16, const uint8_t *ReceivedPayload_pu8)
toposens_echo_driver
Author(s): Tobias Roth
, Dennis Maier , Baris Yazici
autogenerated on Wed Mar 2 2022 01:12:32