Maxim Integrated / Mbed OS MAXREFDES220_HEART_RATE_MONITOR

Dependencies:   USBDevice max32630fthr

Fork of MAXREFDES220# by Maxim Integrated

Embed: (wiki syntax)

« Back to documentation index

SSBootloaderComm Class Reference

SSBootloaderComm Class Reference

SSBootloaderComm Command handler class for bootloader routines on SmartSensor. More...

#include <SSBootloaderComm.h>

Inherits SensorComm.

Public Member Functions

 SSBootloaderComm (USBSerial *USB, SSInterface *ssInterface, DSInterface *dsInterface)
 SSBootloaderComm constructor.
bool parse_command (const char *cmd)
 Parses DeviceStudio-style commands.
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.
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.
virtual void stop ()
 Stop collecting data and disable sensor.
virtual int data_report_execute (char *buf, int size)
 Fill in buffer with sensor data.

Detailed Description

SSBootloaderComm Command handler class for bootloader routines on SmartSensor.

Definition at line 48 of file SSBootloaderComm.h.


Constructor & Destructor Documentation

SSBootloaderComm ( USBSerial *  USB,
SSInterface ssInterface,
DSInterface dsInterface 
)

SSBootloaderComm constructor.

Definition at line 53 of file SSBootloaderComm.cpp.


Member Function Documentation

void comm_init ( MaximSensor s ) [inherited]

Initializer for SensorComm.

Parameters:
[in]sMaximSensor instance to handle sensor commands.

Definition at line 49 of file SensorComm.cpp.

int data_report_execute ( char *  buf,
int  size 
) [virtual, inherited]

Fill in buffer with sensor data.

Parameters:
[in]bufBuffer to fill data into
[in]sizeMaximum size of buffer
[out]Numberof bytes written to buffer

Reimplemented in SSMAX30101Comm.

Definition at line 135 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 71 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 SSMAX30101Comm.

Definition at line 59 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 54 of file SensorComm.cpp.

bool is_enabled (  ) [inherited]

Get whether or not the sensor is enabled.

Parameters:
[out]trueif the sensor is enabled

Definition at line 82 of file SensorComm.cpp.

bool is_visible (  ) [inherited]

Returns whether the sensor should be visible to users in DeviceStudio.

Definition at line 98 of file SensorComm.h.

bool parse_command ( const char *  cmd ) [virtual]

Parses DeviceStudio-style commands.

Parses and executes commands. Prints return code to i/o device.

Returns:
true if sensor acted upon the command, false if command was unknown

Reimplemented from SensorComm.

Definition at line 117 of file SSBootloaderComm.cpp.

void stop (  ) [virtual, inherited]

Stop collecting data and disable sensor.

Reimplemented in SSMAX30101Comm.

Definition at line 131 of file SensorComm.cpp.