uvc 2.0.0.0
uvc.h File Reference

This file contains API for UVC Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"

Go to the source code of this file.

Data Structures

struct  uvc_t
 Click ctx object definition. More...
 
struct  uvc_cfg_t
 Click configuration structure definition. More...
 

Macros

#define UVC_MAP_MIKROBUS(cfg, mikrobus)
 
#define UVC_RETVAL   uint8_t
 
#define UVC_OK   0x00
 
#define UVC_INIT_ERROR   0xFF
 
#define UVC_DEVICE_SLAVE_ADDR   0x4D
 

Functions

void uvc_cfg_setup (uvc_cfg_t *cfg)
 Config Object Initialization function.
 
UVC_RETVAL uvc_init (uvc_t *ctx, uvc_cfg_t *cfg)
 Initialization function.
 
void uvc_generic_write (uvc_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void uvc_generic_read (uvc_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
uint16_t uvc_read_raw_data (uvc_t *ctx)
 Read 12bit raw data.
 
float uvc_get_voltage (uvc_t *ctx)
 Calculate voltage.
 
float uvc_calculate_power (float voltage)
 Calculate power.
 

Detailed Description

This file contains API for UVC Click driver.