mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
pulsensor: updated header to include namespace and generate proper html/xml with doxygen
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
4ff722ed2e
commit
5e37830bb7
@ -27,6 +27,8 @@
|
||||
#include "pulsensor.h"
|
||||
#include <signal.h>
|
||||
|
||||
using namespace upm;
|
||||
|
||||
int doWork = 0;
|
||||
|
||||
void
|
||||
|
@ -30,6 +30,8 @@
|
||||
|
||||
#include "pulsensor.h"
|
||||
|
||||
using namespace upm;
|
||||
|
||||
#if defined(JAVACALLBACK)
|
||||
Pulsensor::Pulsensor (Callback *obj_call) : pin_ctx(0)
|
||||
{
|
||||
|
@ -40,6 +40,20 @@
|
||||
#define TRUE HIGH
|
||||
#define FALSE LOW
|
||||
|
||||
/**
|
||||
* Callback data struct
|
||||
*/
|
||||
struct clbk_data {
|
||||
int is_heart_beat; /**< heartbeat check */
|
||||
};
|
||||
|
||||
#if defined(SWIGJAVA) || defined(JAVACALLBACK)
|
||||
#include "Callback.h"
|
||||
#else
|
||||
typedef void (* callback_handler) (clbk_data);
|
||||
#endif
|
||||
|
||||
namespace upm {
|
||||
/**
|
||||
* @brief Pulsensor Pulse Sensor library
|
||||
* @defgroup pulsensor libupm-pulsensor
|
||||
@ -63,26 +77,6 @@
|
||||
* @image html pulsensor.jpg
|
||||
* @snippet pulsensor.cxx Interesting
|
||||
*/
|
||||
|
||||
/*!
|
||||
* @struct clbk_data
|
||||
* @brief callback data
|
||||
*/
|
||||
struct clbk_data {
|
||||
int is_heart_beat; /**< heartbeat check */
|
||||
};
|
||||
|
||||
|
||||
#if defined(SWIGJAVA) || defined(JAVACALLBACK)
|
||||
#include "Callback.h"
|
||||
#else
|
||||
typedef void (* callback_handler) (clbk_data);
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @class Pulsensor
|
||||
* @brief The context for the heartbeat pulse sensor
|
||||
*/
|
||||
class Pulsensor {
|
||||
|
||||
public:
|
||||
@ -120,4 +114,4 @@ private:
|
||||
#endif
|
||||
volatile uint16_t ctx_counter;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user