TI-RTOS Drivers  tidrivers_tivac_2_16_00_08
Modules | Macros
PWM_control command and status codes
Collaboration diagram for PWM_control command and status codes:

Modules

 Status Codes
 
 Command Codes
 

Macros

#define PWM_CMD_RESERVED   32
 
#define PWM_STATUS_RESERVED   -32
 

Detailed Description

These PWM macros are reservations for PWM.h

Macro Definition Documentation

#define PWM_CMD_RESERVED   32

Common PWM_control command code reservation offset. PWM driver implementations should offset command codes with PWM_CMD_RESERVED growing positively

Example implementation specific command codes:

1 #define PWMXYZ_CMD_COMMAND0 PWM_CMD_RESERVED + 0
2 #define PWMXYZ_CMD_COMMAND1 PWM_CMD_RESERVED + 1
#define PWM_STATUS_RESERVED   -32

Common PWM_control status code reservation offset. PWM driver implementations should offset status codes with PWM_STATUS_RESERVED growing negatively.

Example implementation specific status codes:

1 #define PWMXYZ_STATUS_ERROR0 PWM_STATUS_RESERVED - 0
2 #define PWMXYZ_STATUS_ERROR1 PWM_STATUS_RESERVED - 1
3 #define PWMXYZ_STATUS_ERROR2 PWM_STATUS_RESERVED - 2
Copyright 2016, Texas Instruments Incorporated