Files
VesiScan-Basic-firmware-test/project/ble_peripheral/ble_app_bladder_patch/pulse_gen.h
Charles Kwon 72f5eb3cd9 Initial commit: MT firmware project
- BLE peripheral applications
- dr_piezo and bladder_patch projects

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 17:26:39 +09:00

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__