MetaWear C++ API  0.20.0
C++ implementation of the MetaWear protocol
haptic.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "peripheral_common.h"
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
22 METAWEAR_API void mbl_mw_haptic_start_motor(const MblMwMetaWearBoard *board, float duty_cycle_per, uint16_t pulse_width_ms);
29 METAWEAR_API void mbl_mw_haptic_start_buzzer(const MblMwMetaWearBoard *board, uint16_t pulse_width_ms);
30 
31 #ifdef __cplusplus
32 }
33 #endif
#define METAWEAR_API
Indicates the function should be exported to the symbol table
Definition: dllmarker.h:27
METAWEAR_API void mbl_mw_haptic_start_buzzer(const MblMwMetaWearBoard *board, uint16_t pulse_width_ms)
Drives a buzzer - Pulls down the HCD pin The MetaWear has a driver for motor or buzzers that are 3C c...
METAWEAR_API void mbl_mw_haptic_start_motor(const MblMwMetaWearBoard *board, float duty_cycle_per, uint16_t pulse_width_ms)
Drives a motor - Pulls down the HCD pin The MetaWear has a driver for motor or buzzers that are 3C co...
struct MblMwMetaWearBoard MblMwMetaWearBoard
Software representation of a physical MetaWear board.
Definition: metawearboard_fwd.h:17