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.

30 lines
1.2 KiB

/*
* Copyright (c) Hisilicon Technologies Co., Ltd.. 2021-2021. All rights reserved.
* Description: Header file of pwm driver for reserved17/reserved19 chip.
* Author:
* Create: 2021-05-12
* Note:
*/
#ifndef PWM_V3_H
#define PWM_V3_H
/********************************************************************************************/
/* Includes */
/********************************************************************************************/
#include "pwm_common.h"
/********************************************************************************************
Function Declaration
********************************************************************************************/
td_s32 pwm_init_v3(td_void);
td_s32 pwm_deinit_v3(td_void);
td_s32 pwm_get_state_v3(td_u32 pwm_no, ext_drv_pwm_attr *pwm_attr);
td_s32 pwm_get_attr_v3(td_u32 pwm_no, ext_drv_pwm_attr *pwm_attr);
td_s32 pwm_set_attr_v3(td_u32 pwm_no, const ext_drv_pwm_attr *pwm_attr);
td_s32 pwm_set_enable_v3(td_u32 pwm_no, td_bool enable);
td_s32 pwm_get_enable_v3(td_u32 pwm_no, td_bool *enable);
td_s32 pwm_send_signal_v3(td_u32 pwm_no, td_u32 carrier_sig_duration_us, td_u32 low_level_sig_duration_us);
#endif /* PWM_V3_H */