lvbus_lvcampicser.h

来自「相机传输图像程序源代码 拜耳模式(RAW格式文件)与RGB图像数据互相转换函数」· C头文件 代码 · 共 66 行

H
66
字号
#ifndef ___LVBUS_LVCAMPICSER_H
#define ___LVBUS_LVCAMPICSER_H

#include <LvBus.h>

#ifdef __cplusplus
    extern "C" {
#endif

// Additiol functions here, not related to Reg editor

#define ASCII_CR 0x0D
#define ASCII_LF 0x0A

#define ASCII_ESC 0x1B


#define _MaxSerBus 8

#define LV_BUS_ERROR 1
#define LV_BUS_PARAM_ERROR 2
#define LV_BUS_NOT_IMPLEMENTED 3
#define LV_BUS_NOT_INITIALIZED 4

#define DEVID_COUTA 36
#define DEVID_COUTL 44

#define PicMemSpiFlash     0x00000001
#define PicMemIntFlash     0x00000002
#define PicMemIntEEData    0x00000003
#define PicMemIntConf      0x00000004
#define PicMemJtag         0x00000005
#define PicMemTraceLog     0x00000006
#define PicMemCamMod       0x00000007

#define PicVerFlags_BootLdr 0x1

#define _PicVerMajorVersion(ver) ((ver>>8) & 0xFF)
#define _PicVerMinorVersion(ver) (ver & 0xFF)
#define _PicVerBuildVersion(ver) ((ver>>16) & 0xFF)
#define _PicVerFlagsVersion(ver) ((ver>>24) & 0xFF)


LVBUSAPI(LVSTATUS) LvBus_ResetDevice(int Device);
LVBUSAPI(LVSTATUS) LvBus_ReadMem(int Device, S32BIT Type, U32BIT Addr, U8BIT* Buf, U32BIT* DataLen);
LVBUSAPI(LVSTATUS) LvBus_WriteMem(int Device, S32BIT Type, U32BIT Addr, U8BIT* Buf, U32BIT* DataLen, int BlockSize);
LVBUSAPI(LVSTATUS) LvBus_EraseProgMem(int Device, U32BIT Addr, U32BIT Size, U32BIT RowSize);
LVBUSAPI(LVSTATUS) LvBus_SendAsciiCmd(int Device, U8BIT* Cmd, U8BIT* Answ, U32BIT AnswSize);

LVBUSAPI(LVSTATUS) LvBus_SetCamMasterClock(int Device, unsigned long* Clk);
LVBUSAPI(LVSTATUS) LvBus_ReadVersion(int Device, U32BIT* VendId, U32BIT* DevId, U32BIT* Version);


static void ClosePorts(void);

static void PicSerBus_Trace(const char *fmt, ...);


#ifdef __cplusplus
    };
#endif


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?