28 #ifndef SYSTEM_CORE_INC_DRIVERS_PWM_OC_PWM_H_ 29 #define SYSTEM_CORE_INC_DRIVERS_PWM_OC_PWM_H_ 32 #define DRIVER_NAME PWM 43 #define _________________________________________TYPES_SECTION______________________________________________________________________________ 49 } oC_PWM_ActiveState_t;
64 oC_PWM_ActiveState_t ActiveState;
65 uint64_t MaximumValue;
82 #undef _________________________________________TYPES_SECTION______________________________________________________________________________ 89 #define _________________________________________PROTOTYPES_SECTION_________________________________________________________________________ 91 extern oC_ErrorCode_t oC_PWM_Configure (
const oC_PWM_Config_t * Config , oC_PWM_Context_t * outContext );
92 extern oC_ErrorCode_t oC_PWM_Unconfigure (
const oC_PWM_Config_t * Config , oC_PWM_Context_t * outContext );
93 extern oC_ErrorCode_t oC_PWM_SetDuty ( oC_PWM_Context_t Context ,
float PercentDuty );
94 extern oC_ErrorCode_t oC_PWM_ReadDuty ( oC_PWM_Context_t Context ,
float * outPercentDuty );
95 extern oC_ErrorCode_t oC_PWM_SetValue ( oC_PWM_Context_t Context , uint64_t Value );
96 extern oC_ErrorCode_t oC_PWM_ReadValue ( oC_PWM_Context_t Context , uint64_t * outValue );
98 #undef _________________________________________PROTOTYPES_SECTION_________________________________________________________________________ The file with frequency definitions.
double oC_Frequency_t
type to store frequency
all pins are set to low state
The file with interface for the GPIO driver.
struct Context_t * oC_PWM_Context_t
The PWM context structure.
PWM driver configuration structure.
The file with interface for driver creating.
all pins are set to high state