Freescale Semiconductor Inc.
    Regional Technical Application Center

 

Main Page | Class List | Directories | File List | File Members | Related Pages

Pwm_ReportError.h

Go to the documentation of this file.
00001 
00017 #ifndef PWM_REPORT_ERROR_H
00018   #define PWM_REPORT_ERROR_H
00019 
00021 #include "Pwm_Cfg.h"
00022 /*----------------------------- Definitions ----------------------------*/
00024 #define PWM_INIT_ID               ((uint8_t)0x00)
00025 #define PWM_SETDUTYCYCLE_ID       ((uint8_t)0x01)
00026 #define PWM_SETPERIODANDDUTY_ID   ((uint8_t)0x02)
00027 #define PWM_SETOUTPUTTOIDLE_ID    ((uint8_t)0x03)
00028 #define PWM_CALLBACK_PTR_ID       ((uint8_t)0x04)
00029 
00031 #define PWM_E_PARAM_CONFIG        ((uint8_t)0x10)
00032 #define PWM_E_UNINIT              ((uint8_t)0x11)
00033 #define PWM_E_PARAM_CHANNEL       ((uint8_t)0x12)
00034 #define PWM_E_DUTYCYCLE_RANGE     ((uint8_t)0x13) 
00035 #define PWM_E_PERIOD_DUTY_RANGE   ((uint8_t)0x14)
00036 #define PWM_E_FNC_CALLBACK_UNINIT ((uint8_t)0x15)
00037 
00038 /*----------------------------- Functions ------------------------------*/
00039   #if (PWM_ERROR_DETECT == ON)
00040      void vfnPwm_Report_Error(uint8_t ApiId, uint8_t ErrorId);
00041   #endif
00042 #endif