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

XCLK generation via PWM. 更多...

#include <stdint.h>
xclk.h 的引用(Include)关系图:

浏览该文件的源代码.

函数

int xclk_start (int pin, uint32_t freq_hz)
 Start the camera master clock on a GPIO.
void xclk_stop (int pin)

详细描述

XCLK generation via PWM.

函数说明

◆ xclk_start()

int xclk_start ( int pin,
uint32_t freq_hz )

Start the camera master clock on a GPIO.

Uses the PWM slice of the given pin. Frequency is derived from the actual sys clock, so overclocked boards get the right frequency. The achievable granularity near 20 MHz is limited (sys_clk/N); OV sensors tolerate a wide range, so the closest divider is used.

参数
pinGPIO number
freq_hzrequested frequency, typically 10-24 MHz
返回
0 on success

◆ xclk_stop()

void xclk_stop ( int pin)

Stop the clock and release the pin.

English version