|  | Dual Active Bridge Development Board (Part-No. ) |
Content |  |  |  |  |  |

Loading...
Searching...
No Matches
sccp3.h
Go to the documentation of this file.
1
17/*
18© [2024] Microchip Technology Inc. and its subsidiaries.
19
20 Subject to your compliance with these terms, you may use Microchip
21 software and any derivatives exclusively with Microchip products.
22 You are responsible for complying with 3rd party license terms
23 applicable to your use of 3rd party software (including open source
24 software) that may accompany Microchip software. SOFTWARE IS ?AS IS.?
25 NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS
26 SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
27 MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
28 WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
29 INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY
30 KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
31 MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
32 FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP?S
33 TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT
34 EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR
35 THIS SOFTWARE.
36*/
37
38#ifndef SCCP3_H
39#define SCCP3_H
40
41// Section: Included Files
42
43#include <stddef.h>
44#include "pwm_interface.h"
45#include "pwm_types.h"
46
47// Section: Data Type Definitions
48
49
59extern const struct PWM_INTERFACE FAN_PWM;
60
65#define FAN_PWM_Initialize SCCP3_PWM_Initialize
70#define FAN_PWM_Deinitialize SCCP3_PWM_Deinitialize
75#define FAN_PWM_Enable SCCP3_PWM_Enable
80#define FAN_PWM_Disable SCCP3_PWM_Disable
85#define FAN_PWM_PeriodSet SCCP3_PWM_PeriodSet
90#define FAN_PWM_DutyCycleSet SCCP3_PWM_DutyCycleSet
95#define FAN_PWM_DeadTimeSet SCCP3_PWM_DeadTimeSet
100#define FAN_PWM_OutputModeSet SCCP3_PWM_OutputModeSet
105#define FAN_PWM_SoftwareTriggerSet SCCP3_PWM_SoftwareTriggerSet
110#define FAN_PWM_Tasks SCCP3_PWM_Tasks
115#define FAN_PWM_PWM_CallbackRegister SCCP3_PWM_CallbackRegister
116
117// Section: SCCP3 Module APIs
118
126void SCCP3_PWM_Initialize( void );
127
134void SCCP3_PWM_Deinitialize(void);
135
142void SCCP3_PWM_Enable( void );
143
150void SCCP3_PWM_Disable( void );
151
158void SCCP3_PWM_PeriodSet(size_t periodCount);
159
166void SCCP3_PWM_DutyCycleSet(size_t dutyCycleCount);
167
174void SCCP3_PWM_SoftwareTriggerSet( void );
175
183void SCCP3_PWM_CallbackRegister(void (*handler)(void));
184
193 void SCCP3_PWM_Callback(void);
194
201void SCCP3_PWM_Tasks( void );
202
203#endif //SCCP3_H
204
pwm_types.h
This is the generated driver types header file for the PWM driver.
SCCP3_PWM_PeriodSet
void SCCP3_PWM_PeriodSet(size_t periodCount)
Sets the cycle width.
Definition sccp3.c:132
SCCP3_PWM_Callback
void SCCP3_PWM_Callback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
SCCP3_PWM_Disable
void SCCP3_PWM_Disable(void)
Disables the SCCP3 module.
Definition sccp3.c:127
SCCP3_PWM_DutyCycleSet
void SCCP3_PWM_DutyCycleSet(size_t dutyCycleCount)
Sets the ON pulse width.
Definition sccp3.c:137
SCCP3_PWM_Enable
void SCCP3_PWM_Enable(void)
Enables the SCCP3 module.
Definition sccp3.c:121
SCCP3_PWM_Deinitialize
void SCCP3_PWM_Deinitialize(void)
Deinitializes the SCCP3 to POR values.
Definition sccp3.c:101
SCCP3_PWM_Initialize
void SCCP3_PWM_Initialize(void)
Initializes the SCCP3 Pulse driver. This function must be called before any other SCCP3 function is c...
Definition sccp3.c:66
SCCP3_PWM_Tasks
void SCCP3_PWM_Tasks(void)
This function is used to implement the tasks for polled implementations.
Definition sccp3.c:161
SCCP3_PWM_SoftwareTriggerSet
void SCCP3_PWM_SoftwareTriggerSet(void)
This function sets the manual trigger.
Definition sccp3.c:142
FAN_PWM
const struct PWM_INTERFACE FAN_PWM
Structure object of type PWM_INTERFACE with the custom name given by the user in the Melody Driver Us...
Definition sccp3.c:50
SCCP3_PWM_CallbackRegister
void SCCP3_PWM_CallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for SCCP3 PWM ev...
Definition sccp3.c:147
PWM_INTERFACE
Structure containing the function pointers of PWM generator driver.
Definition pwm_interface.h:54