PicoCamera 0.2.0
Camera library for RP2040 with an esp32-camera compatible API
GitHub
载入中...
搜索中...
未找到
gc032a.cpp 文件参考

GC032A sensor driver. 更多...

#include "gc032a.h"
#include "pico/stdlib.h"
#include "../driver/sccb.h"
#include "gc032a_regs.h"
#include "gc032a_settings.h"
gc032a.cpp 的引用(Include)关系图:

宏定义

#define H8(v)
#define L8(v)

函数

int gc032a_detect (sensor_t *sensor)
 Probe the bus for a GC032A. On success fills sensor->id.
int gc032a_init_sensor (sensor_t *sensor)
 Fill sensor_t function pointers and write the default register set.

详细描述

GC032A sensor driver.

Register tables and control logic adapted from esp32-camera's gc032a.c (Apache-2.0). The GC032A has no JPEG encoder, so set_pixformat(PIXFORMAT_JPEG) always fails; the core also rejects it up front via camera_sensor_info_t.support_jpeg.

Framesize scaling uses windowing: crop the requested window out of the full VGA frame (esp32-camera's gc032a.c has no subsample mode).

宏定义说明

◆ H8

#define H8 ( v)
值:
((v)>>8)

◆ L8

#define L8 ( v)
值:
((v)&0xff)

函数说明

◆ gc032a_detect()

int gc032a_detect ( sensor_t * sensor)

Probe the bus for a GC032A. On success fills sensor->id.

返回
0 if detected

◆ gc032a_init_sensor()

int gc032a_init_sensor ( sensor_t * sensor)

Fill sensor_t function pointers and write the default register set.

返回
0 on success
English version