You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.3 KiB

/*
* Copyright (c) Hisilicon Technologies Co., Ltd.. 2021-2021. All rights reserved.
* Description: Header file of pwm driver for reserved13/reserved9 cs chip.
* Author:
* Create: 2021-05-12
* Note:
*/
#ifndef PWM_V1_H
#define PWM_V1_H
/********************************************************************************************/
/* Includes */
/********************************************************************************************/
#include "drv_pwm_ext.h"
/********************************************************************************************
Function Declaration
********************************************************************************************/
td_s32 pwm_init_v1(td_void);
td_s32 pwm_deinit_v1(td_void);
td_s32 pwm_get_state_v1(td_u32 pwm_no, ext_drv_pwm_attr *pwm_attr);
td_s32 pwm_get_attr_v1(td_u32 pwm_no, ext_drv_pwm_attr *pwm_attr);
td_s32 pwm_set_attr_v1(td_u32 pwm_no, const ext_drv_pwm_attr *pwm_attr);
td_s32 pwm_set_enable_v1(td_u32 pwm_no, td_bool enable);
td_s32 pwm_get_enable_v1(td_u32 pwm_no, td_bool *enable);
td_s32 pwm_send_signal_v1(td_u32 pwm_no, td_u32 carrier_sig_duration_us, td_u32 low_level_sig_duration_us);
td_s32 pwm_moto_trigger_v1(td_u32 pwm_no, const ext_drv_pwm_attr *pwm_attr, td_u32 time_us);
#endif /* PWM_V1_H */