Bell Huang / pixart_pah8011
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pah_comm.h Source File

pah_comm.h

00001 #pragma once
00002 
00003 
00004 #include "pah_platform_types.h"
00005 #include "pah_drv_comm.h"
00006 
00007 
00008 typedef enum {
00009 
00010     pah_comm_bus_i2c,
00011     pah_comm_bus_spi,
00012 
00013 } pah_comm_bus_e;
00014 
00015 
00016 void  pah_comm_set_drv_comm(const pah_drv_comm_s *drv_comm);
00017 
00018 bool  pah_comm_write(uint8_t addr, uint8_t data);
00019 bool  pah_comm_read(uint8_t addr, uint8_t *data);
00020 bool  pah_comm_burst_read(uint8_t addr, uint8_t *data, uint16_t num);
00021 
00022 pah_comm_bus_e     pah_comm_get_bus_type(void);
00023