mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-24 22:07:14 +03:00
4241ad24a3
* Signal Generator app * MCO pin initialization in app * furi_hal_pwm documentation Co-authored-by: あく <alleteam@gmail.com>
22 lines
577 B
C
22 lines
577 B
C
#pragma once
|
|
|
|
#include <gui/view.h>
|
|
#include "../signal_gen_app_i.h"
|
|
|
|
typedef struct SignalGenPwm SignalGenPwm;
|
|
typedef void (
|
|
*SignalGenPwmViewCallback)(uint8_t channel_id, uint32_t freq, uint8_t duty, void* context);
|
|
|
|
SignalGenPwm* signal_gen_pwm_alloc();
|
|
|
|
void signal_gen_pwm_free(SignalGenPwm* pwm);
|
|
|
|
View* signal_gen_pwm_get_view(SignalGenPwm* pwm);
|
|
|
|
void signal_gen_pwm_set_callback(
|
|
SignalGenPwm* pwm,
|
|
SignalGenPwmViewCallback callback,
|
|
void* context);
|
|
|
|
void signal_gen_pwm_set_params(SignalGenPwm* pwm, uint8_t channel_id, uint32_t freq, uint8_t duty);
|