📄 lvbus_lvcampicser.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -