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
30 lines
1.2 KiB
/*
|
|
* Copyright (c) Hisilicon Technologies Co., Ltd.. 2021-2021. All rights reserved.
|
|
* Description: Header file of pwm driver for reserved5/reserved2 chip.
|
|
* Author:
|
|
* Create: 2021-05-12
|
|
* Note:
|
|
*/
|
|
|
|
#ifndef PWM_V2_H
|
|
#define PWM_V2_H
|
|
|
|
/********************************************************************************************/
|
|
/* Includes */
|
|
/********************************************************************************************/
|
|
#include "drv_pwm_ext.h"
|
|
|
|
/********************************************************************************************
|
|
Function Declaration
|
|
********************************************************************************************/
|
|
td_s32 pwm_init_v2(td_void);
|
|
td_s32 pwm_deinit_v2(td_void);
|
|
td_s32 pwm_get_state_v2(td_u32 pwm_no, ext_drv_pwm_attr *pwm_attr);
|
|
td_s32 pwm_get_attr_v2(td_u32 pwm_no, ext_drv_pwm_attr *pwm_attr);
|
|
td_s32 pwm_set_attr_v2(td_u32 pwm_no, const ext_drv_pwm_attr *pwm_attr);
|
|
td_s32 pwm_set_enable_v2(td_u32 pwm_no, td_bool enable);
|
|
td_s32 pwm_get_enable_v2(td_u32 pwm_no, td_bool *enable);
|
|
td_s32 pwm_send_signal_v2(td_u32 pwm_no, td_u32 carrier_sig_duration_us, td_u32 low_level_sig_duration_us);
|
|
|
|
#endif /* PWM_V2_H */
|