Initial commit: MT firmware project
- BLE peripheral applications - dr_piezo and bladder_patch projects Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
28
project/ble_peripheral/ble_app_bladder_patch/pulse_gen.h
Normal file
28
project/ble_peripheral/ble_app_bladder_patch/pulse_gen.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef PULSE_GEN_H__
|
||||
#define PULSE_GEN_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "sdk_errors.h"
|
||||
|
||||
/**
|
||||
* @brief Initializes the PWM peripheral and app_timer for pulse generation.
|
||||
*
|
||||
* @return NRF_SUCCESS on successful initialization, otherwise an error code.
|
||||
*/
|
||||
ret_code_t pulse_gen_init(void);
|
||||
|
||||
/**
|
||||
* @brief Starts the repeating pulse generation.
|
||||
* Generates a burst of pulses, waits a few ms, and repeats.
|
||||
*/
|
||||
void pulse_gen_start(void);
|
||||
|
||||
/**
|
||||
* @brief Stops the repeating pulse generation.
|
||||
*/
|
||||
void pulse_gen_stop(void);
|
||||
|
||||
#endif // PULSE_GEN_H__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user