MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / sensor_cmd_warning_unknown

Function sensor_cmd_warning_unknown

components/drivers/sensor/v2/sensor_cmd.c:534–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532MSH_CMD_EXPORT(sensor_polling, Sensor polling mode test function);
533
534static void sensor_cmd_warning_unknown(void)
535{
536 LOG_W("Unknown command, please enter 'sensor' get help information!");
537 rt_kprintf("sensor [OPTION] [PARAM]\n");
538 rt_kprintf(" list list all sensor devices\n");
539 rt_kprintf(" probe <dev_name> probe sensor by given name\n");
540 rt_kprintf(" info get sensor information\n");
541 rt_kprintf(" read [num] read [num] times sensor (default 5)\n");
542 rt_kprintf(" power [mode] set or get power mode\n");
543 rt_kprintf(" accuracy [mode] set or get accuracy mode\n");
544 rt_kprintf(" fetch [mode] set or get fetch data mode\n");
545 rt_kprintf(" reset reset sensor chip\n");
546}
547
548static void sensor_cmd_warning_probe(void)
549{

Callers 1

sensorFunction · 0.85

Calls 1

rt_kprintfFunction · 0.85

Tested by

no test coverage detected