HPM SDK
HPMicro Software Development Kit
hpm_mipi_csi_drv.h File Reference
#include "hpm_common.h"
#include "hpm_soc.h"
#include "hpm_mipi_csi_regs.h"

Go to the source code of this file.

Data Structures

struct  mipi_csi_config
 

Macros

#define MIPI_CSI_PHY_STOP_MASK_CLK_LANE   (0x01u<<16)
 
#define MIPI_CSI_PHY_STOP_MASK_DATA1_LANE   (0x01u<<1)
 
#define MIPI_CSI_PHY_STOP_MASK_DATA0_LANE   (0x01u<<0)
 

Typedefs

typedef enum mipi_csi_data_type mipi_csi_data_type_t
 
typedef struct mipi_csi_config mipi_csi_config_t
 

Enumerations

enum  mipi_csi_data_type {
  mipi_csi_data_type_yuv420_8bit = 0x18 , mipi_csi_data_type_yuv422_8bit = 0x1e , mipi_csi_data_type_rgb565 = 0x22 , mipi_csi_data_type_rgb666 = 0x23 ,
  mipi_csi_data_type_rgb888 = 0x24
}
 

Functions

void mipi_csi_get_defconfig (mipi_csi_config_t *cfg)
 get MIPI_CSI default config More...
 
void mipi_csi_init (MIPI_CSI_Type *ptr, mipi_csi_config_t *cfg)
 MIPI_CSI init. More...
 
void mipi_csi_phy_poweron (MIPI_CSI_Type *ptr)
 MIPI_CSI phy interface power on. More...
 
void mipi_csi_phy_powerdown (MIPI_CSI_Type *ptr)
 MIPI_CSI phy interface power down. More...
 
static bool mipi_csi_clklane_is_entry_hs (MIPI_CSI_Type *ptr)
 MIPI_CSI check clklane whether on HS state. More...