/* * Copyright 2017-2018, 2020 NXP * All rights reserved. * * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef _FSL_OV5640_H_ #define _FSL_OV5640_H_ #include "fsl_common.h" #include "fsl_sccb.h" /* * Change log: * * 1.0.1 * - Fix MISRA-C 2012 issues. * * 1.0.0 * - Initial version */ /******************************************************************************* * Definitions ******************************************************************************/ /*! * @brief OV5640 resource. * * Before initialize the OV5640, the resource must be initialized that the SCCB * I2C could start to work. */ typedef struct _ov5640_resource { sccb_i2c_send_func_t i2cSendFunc; /*!< I2C send function. */ sccb_i2c_receive_func_t i2cReceiveFunc; /*!< I2C receive function. */ void (*pullResetPin)(bool pullUp); /*!< Function to pull reset pin high or low. */ void (*pullPowerDownPin)(bool pullUp); /*!< Function to pull the power down pin high or low. */ } ov5640_resource_t; /*! @brief OV5640 operation functions. */ extern const camera_device_operations_t ov5640_ops; /******************************************************************************* * API ******************************************************************************/ #if defined(__cplusplus) extern "C" { #endif #if defined(__cplusplus) } #endif #endif /* _FSL_OV5640_H_ */