class pah8011 for mbed

Committer:
bell_huang
Date:
Wed Jan 23 08:01:57 2019 +0000
Revision:
6:d196b612b14a
Parent:
0:242cf8f28bf2
Remove mbed

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bell_huang 6:d196b612b14a 1 #pragma once
bell_huang 0:242cf8f28bf2 2
bell_huang 0:242cf8f28bf2 3
bell_huang 0:242cf8f28bf2 4 #include "pah_platform_types.h"
bell_huang 6:d196b612b14a 5 #include "pah_drv_comm.h"
bell_huang 0:242cf8f28bf2 6
bell_huang 0:242cf8f28bf2 7
bell_huang 0:242cf8f28bf2 8 typedef enum {
bell_huang 0:242cf8f28bf2 9
bell_huang 0:242cf8f28bf2 10 pah_comm_bus_i2c,
bell_huang 0:242cf8f28bf2 11 pah_comm_bus_spi,
bell_huang 0:242cf8f28bf2 12
bell_huang 0:242cf8f28bf2 13 } pah_comm_bus_e;
bell_huang 0:242cf8f28bf2 14
bell_huang 0:242cf8f28bf2 15
bell_huang 6:d196b612b14a 16 void pah_comm_set_drv_comm(const pah_drv_comm_s *drv_comm);
bell_huang 6:d196b612b14a 17
bell_huang 0:242cf8f28bf2 18 bool pah_comm_write(uint8_t addr, uint8_t data);
bell_huang 0:242cf8f28bf2 19 bool pah_comm_read(uint8_t addr, uint8_t *data);
bell_huang 0:242cf8f28bf2 20 bool pah_comm_burst_read(uint8_t addr, uint8_t *data, uint16_t num);
bell_huang 0:242cf8f28bf2 21
bell_huang 0:242cf8f28bf2 22 pah_comm_bus_e pah_comm_get_bus_type(void);
bell_huang 0:242cf8f28bf2 23