# CAMERA_I2CFlip*

## Syntax

  `#include <twl/camera.h>`
  `CAMERAResult CAMERA_I2CFlip(CAMERASelect camera, CAMERAFlip flip);`
  `CAMERAResult CAMERA_I2CFlipAsync(CAMERASelect camera, CAMERAFlip flip, CAMERACallback callback, void *arg);`
  `CAMERAResult CAMERA_I2CFlipEx(CAMERASelect camera, CAMERAContext context, CAMERAFlip flip);`
  `CAMERAResult CAMERA_I2CFlipExAsync(CAMERASelect camera, CAMERAContext context, CAMERAFlip flip, CAMERACallback callback, void *arg);`

## Arguments

camera | Camera to configure (`CAMERA_SELECT_IN`, `CAMERA_SELECT_OUT`, or `CAMERA_SELECT_BOTH`).
context | Context to change.
flip | Flipping to configure.
callback | Function that is called when asynchronous processing has completed.
arg | Arguments when the callback function is invoked.

## Return Values

Returns `CAMERA_RESULT_SUCCESS` if configuration was successful.

## Description

Changes the flipping setting for the camera.
The `CAMERA_I2CFlipEx` function is used to change the setting for a specified context. The non-Ex functions change the setting for both context A and B. See `CAMERAContext` for information on contexts.
Unlike `CAMERA_I2CFlip`, the `CAMERA_I2CFlipAsync` function returns control immediately and runs asynchronously. Use callback to confirm that processing has completed.

## See Also

`CAMERASelect`
`CAMERAContext`
`CAMERAFlip`
`CAMERACallback`
`CAMERAResult`

## Revision History

2008/10/30 Added that `CAMERA_SELECT_BOTH` also can be specified.
2007/10/12 Initial version.

CONFIDENTIAL