MAX32620HSP (MAXREFDES100) RPC Example for Graphical User Interface
Dependencies: USBDevice
Fork of HSP_Release by
Device_Logging Class Reference
Class that is used to store device logging parameters when logging to flash or streaming usb. More...
#include <Device_Logging.h>
Public Member Functions | |
int | isLoggingEnabled (void) |
Check if logging is enabled for this device. | |
int | getLoggingSampleRate (void) |
Returns the sample rate for the device, rate is in seconds. | |
void | initStart (int sampleRate) |
Initialize the sampling rate for the device. | |
int | getNextSampleTime (void) |
Gets a value that represents when device needs to be sampled again, used for datalogging and usb streaming. | |
void | setNextSampleTime (int time) |
Sets a value that represents when device needs to be sampled again, used for datalogging and usb streaming. | |
void | stop (void) |
Disables further datalog and streaming sampling for the device. |
Detailed Description
Class that is used to store device logging parameters when logging to flash or streaming usb.
Definition at line 42 of file Device_Logging.h.
Member Function Documentation
int getLoggingSampleRate | ( | void | ) |
Returns the sample rate for the device, rate is in seconds.
Definition at line 44 of file Device_Logging.cpp.
int getNextSampleTime | ( | void | ) |
Gets a value that represents when device needs to be sampled again, used for datalogging and usb streaming.
Definition at line 65 of file Device_Logging.cpp.
void initStart | ( | int | sampleRate ) |
Initialize the sampling rate for the device.
- Parameters:
-
sampleRate Rate to log device output in seconds
Definition at line 50 of file Device_Logging.cpp.
int isLoggingEnabled | ( | void | ) |
Check if logging is enabled for this device.
Definition at line 39 of file Device_Logging.cpp.
void setNextSampleTime | ( | int | time ) |
Sets a value that represents when device needs to be sampled again, used for datalogging and usb streaming.
- Parameters:
-
time Time for next sample in seconds, time is relative to a timer
Definition at line 72 of file Device_Logging.cpp.
void stop | ( | void | ) |
Disables further datalog and streaming sampling for the device.
- Parameters:
-
time Time for next sample in seconds, time is relative to a timer
Definition at line 59 of file Device_Logging.cpp.
Generated on Tue Jul 12 2022 17:59:20 by 1.7.2