Go to the documentation of this file.
13 static void LogMsgCallback(uint16_t SenderId_u16, uint8_t* ReceivedPayload_pu8);
24 int main(
int argc,
char** argv)
26 int num_of_frames = 0;
31 fprintf(stderr,
"Pass -n argument.\n");
35 while ((c = getopt(argc, argv,
"n:")) != -1)
switch (c)
38 num_of_frames = atoi(optarg);
39 if (num_of_frames < 0) num_of_frames = 0;
43 fprintf(stderr,
"Option -%c requires an argument.\n", optopt);
45 fprintf(stderr,
"Unknown option character `\\x%x'.\n", optopt);
54 printf(
"Blocking Reboot Request worked\n");
58 printf(
"Blocking Reboot Request worked but did not got the right ack\n");
65 for (i = 0; i < num_of_frames; i++)
74 static void LogMsgCallback(uint16_t SenderId_u16, uint8_t* ReceivedPayload_pu8)
bool RequestReboot()
Request selected sensor to reboot.
void DeinitInterface(CommsInterfaceType_t Interface_t)
Instruction to deinit the specified interface type.
uint16_t WaitForSessionEnd()
Blocking Function call to wait for SessionEnd Payload.
int main(int argc, char **argv)
bool RequestMeasurement()
Send's a request to start a new measurement.
uint16_t WaitForReady()
Blocking Function call to wait for Ready Payload.
Sensor_Session_t * GetSessionData(uint16_t Sender_u16)
Interface function to query current session-data (ongoing and closed session)
void InitInterface(char *InterfaceName, uint32_t DataRate_u32, CommsInterfaceType_t Interface_t)
Instruction to initialize the specified interface with the specified bit rate. Will also initialize t...
void PrintSessionData(Sensor_Session_t *Session)
@ SENSOR_MODE_SINGLE_SHOT_TRANSMIT_LISTEN
bool SetParameterSystemSensorMode(SensorMode_t Mode_t)
Blocking Request to set the Sensor Mode for current target sensor.
uint16_t WaitForSessionStart()
Blocking Function call to wait for SessionStart Payload.
static void SingleShotMeasurement()
This file contains the highlevel interface prototypes to the low-level Protocol.
void RegisterLogMsgCallback(void(*Callback)(uint16_t Sender_u16, uint8_t *ReceivedPayload_pu8))
Interface function to register a callback function that is called whenever a Logmessage Payload is re...
Library containing common functions that are used in the various examples.
static void LogMsgCallback(uint16_t SenderId_u16, uint8_t *ReceivedPayload_pu8)
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