Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: max32630fthr Adafruit_FeatherOLED USBDevice
TempComm Class Reference
TempComm Temperature sensor command handler class. More...
#include <TempComm.h>
Inherits SensorComm.
Public Member Functions | |
TempComm (USBSerial *USB) | |
TempComm constructor. | |
bool | parse_command (const char *cmd) |
Parses Sensor Studio commands. | |
int | data_report_execute (char *buf, int size) |
Fill in buffer with sensor data. | |
void | stop () |
Stop collecting data and disable sensor. | |
void | comm_init (MaximSensor *s) |
Initializer for SensorComm. | |
const char * | get_type () |
Get the type of the sensor. | |
virtual const char * | get_part_name () |
Get the maxim part name of the sensor. | |
virtual const char * | get_algo_ver () |
Get the maxim algorithm version of the sensor. | |
int | get_part_info (uint8_t *part_id, uint8_t *part_rev) |
Get the id and revision of the part. | |
bool | is_visible () |
Returns whether the sensor should be visible to users in DeviceStudio. | |
bool | is_enabled () |
Get whether or not the sensor is enabled. | |
uint8_t | get_data_report_mode () |
Get data report mode of the sensor. | |
void | SensorComm_Set_Ble_Status (bool status) |
Detailed Description
TempComm Temperature sensor command handler class.
Definition at line 46 of file TempComm.h.
Constructor & Destructor Documentation
TempComm | ( | USBSerial * | USB ) |
TempComm constructor.
Definition at line 60 of file TempComm.cpp.
Member Function Documentation
void comm_init | ( | MaximSensor * | s ) | [inherited] |
Initializer for SensorComm.
- Parameters:
-
[in] s MaximSensor instance to handle sensor commands.
Definition at line 53 of file SensorComm.cpp.
int data_report_execute | ( | char * | buf, |
int | size | ||
) | [virtual] |
Fill in buffer with sensor data.
- Parameters:
-
[in] buf Buffer to fill data into [in] size Maximum size of buffer [out] Number of bytes written to buffer
Reimplemented from SensorComm.
Definition at line 226 of file TempComm.cpp.
const char * get_algo_ver | ( | ) | [virtual, inherited] |
Get the maxim algorithm version of the sensor.
- Parameters:
-
[out] char* to name (ie "max86140")
Definition at line 83 of file SensorComm.cpp.
uint8_t get_data_report_mode | ( | ) | [inherited] |
Get data report mode of the sensor.
- Parameters:
-
[out] data report mode
Definition at line 111 of file SensorComm.cpp.
int get_part_info | ( | uint8_t * | part_id, |
uint8_t * | part_rev | ||
) | [inherited] |
Get the id and revision of the part.
Definition at line 95 of file SensorComm.cpp.
const char * get_part_name | ( | ) | [virtual, inherited] |
Get the maxim part name of the sensor.
- Parameters:
-
[out] char* to name (ie "max86140")
Reimplemented in SSMAX8614XComm.
Definition at line 71 of file SensorComm.cpp.
const char * get_type | ( | ) | [inherited] |
Get the type of the sensor.
- Parameters:
-
[out] char* to name of type (ie "ppg")
Definition at line 58 of file SensorComm.cpp.
bool is_enabled | ( | ) | [inherited] |
Get whether or not the sensor is enabled.
- Parameters:
-
[out] true if the sensor is enabled
Definition at line 106 of file SensorComm.cpp.
bool is_visible | ( | ) | [inherited] |
Returns whether the sensor should be visible to users in DeviceStudio.
Definition at line 114 of file SensorComm.h.
bool parse_command | ( | const char * | cmd ) | [virtual] |
Parses Sensor Studio commands.
Parses and executes commands. Prints command result to i/o device.
- Returns:
- true if sensor acted upon the command, false if command was unknown
Reimplemented from SensorComm.
Definition at line 84 of file TempComm.cpp.
void SensorComm_Set_Ble_Status | ( | bool | status ) | [inherited] |
- Parameters:
-
status
Definition at line 195 of file SensorComm.cpp.
void stop | ( | ) | [virtual] |
Stop collecting data and disable sensor.
Reimplemented from SensorComm.
Definition at line 70 of file TempComm.cpp.
Generated on Tue Jul 12 2022 20:09:29 by
