DEVICE_DISPLAY_ROTATION_ANGLE_DEGREE_90 = 90, /**< Display rotation state is 90 degree */
DEVICE_DISPLAY_ROTATION_ANGLE_DEGREE_180 = 180, /**< Display rotation state is 180 degree */
DEVICE_DISPLAY_ROTATION_ANGLE_DEGREE_270 = 270, /**< Display rotation state is 270 degree */
- DEVICE_DISPLAY_ROTATION_ANGLE_DEGREE_360 = 360, /**< Display rotation state is 360 degree */
} device_display_rotation_angle_e;
* DEVICE_DISPLAY_ROTATION_ANGLE_DEGREE_90\n
* DEVICE_DISPLAY_ROTATION_ANGLE_DEGREE_180\n
* DEVICE_DISPLAY_ROTATION_ANGLE_DEGREE_270\n
- * DEVICE_DISPLAY_ROTATION_ANGLE_DEGREE_360\n
* @return @c 0 on success,
* otherwise a negative error value
* @retval #DEVICE_ERROR_NONE Successful
* DEVICE_DISPLAY_ROTATION_ANGLE_DEGREE_90\n
* DEVICE_DISPLAY_ROTATION_ANGLE_DEGREE_180\n
* DEVICE_DISPLAY_ROTATION_ANGLE_DEGREE_270\n
- * DEVICE_DISPLAY_ROTATION_ANGLE_DEGREE_360\n
* @param[in] direction The type is display rotation direction\n
* DEVICE_DISPLAY_ROTATION_DIRECTION_CLOCKWISE\n
* DEVICE_DISPLAY_ROTATION_DIRECTION_COUNTER_CLOCKWISE\n
#define DISPLAY_WHITE_BALANCE_OFFSET_MIN 0
#define SENSOR_SHIFT_TYPE 16
+#define ROTATION_ANGLE_DEGREE_MAX 360
static int display_cnt = -1;
struct display {
return DEVICE_ERROR_INVALID_PARAMETER;
if (angle < DEVICE_DISPLAY_ROTATION_ANGLE_DEGREE_0
- || angle > DEVICE_DISPLAY_ROTATION_ANGLE_DEGREE_360)
+ || angle > ROTATION_ANGLE_DEGREE_MAX)
return DEVICE_ERROR_INVALID_PARAMETER;
switch (direction) {