- BLE peripheral applications - dr_piezo and bladder_patch projects Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
603 B
C
29 lines
603 B
C
#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__
|
|
|
|
|