Freescale Semiconductor Inc.
    Regional Technical Application Center

 

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

Pwm_ReportError.h File Reference

This file contains all Pwm Report Error functions as well as
all Error Type definitions. More...

#include "Pwm_Cfg.h"

Go to the source code of this file.

Defines

#define PWM_INIT_ID   ((uint8_t)0x00)
#define PWM_SETDUTYCYCLE_ID   ((uint8_t)0x01)
#define PWM_SETPERIODANDDUTY_ID   ((uint8_t)0x02)
#define PWM_SETOUTPUTTOIDLE_ID   ((uint8_t)0x03)
#define PWM_CALLBACK_PTR_ID   ((uint8_t)0x04)
#define PWM_E_PARAM_CONFIG   ((uint8_t)0x10)
#define PWM_E_UNINIT   ((uint8_t)0x11)
#define PWM_E_PARAM_CHANNEL   ((uint8_t)0x12)
#define PWM_E_DUTYCYCLE_RANGE   ((uint8_t)0x13)
#define PWM_E_PERIOD_DUTY_RANGE   ((uint8_t)0x14)
#define PWM_E_FNC_CALLBACK_UNINIT   ((uint8_t)0x15)

Functions

void vfnPwm_Report_Error (uint8_t ApiId, uint8_t ErrorId)
 Serve to catch and save any data inconsistency passed throughout
every Pwm function. Each type of error is saved in RAM variables
user is able to use them as convenience.


Detailed Description

This file contains all Pwm Report Error functions as well as
all Error Type definitions.

Copyright (c) 2008 Freescale Semiconductor Freescale Confidential Proprietary

Author:
Freescale Semiconductor

r01160

Guadalajara Applications Laboratory RTAC Americas

Version:
0.1
Date:
4/14/2008 12:12:30 PM
Warning:
DO NOT MODIFY THE NAME OF ERROR TYPES. USER IS ABLE TO CHANGE THEIR VALUES
BUT NOT THEIR NAMES. History:

Define Documentation

#define PWM_E_PARAM_CONFIG   ((uint8_t)0x10)
 

PWM Error Types

#define PWM_INIT_ID   ((uint8_t)0x00)
 

API Error Types


Function Documentation

void vfnPwm_Report_Error uint8_t  ApiId,
uint8_t  ErrorId
 

Serve to catch and save any data inconsistency passed throughout
every Pwm function. Each type of error is saved in RAM variables
user is able to use them as convenience.

Author:
R01160
Parameters:
Pwm Instance Id, Api Error type, Error definition tyoe
Returns:
none
Todo:
Warning: