class pah8011 for mbed

Committer:
bell_huang
Date:
Fri Oct 27 05:53:55 2017 +0000
Revision:
3:0b9497a4b249
Child:
5:37451de228e4
@@@@

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bell_huang 3:0b9497a4b249 1 /*==============================================================================
bell_huang 3:0b9497a4b249 2 * Edit History
bell_huang 3:0b9497a4b249 3 *
bell_huang 3:0b9497a4b249 4 * This section contains comments describing changes made to the module. Notice
bell_huang 3:0b9497a4b249 5 * that changes are listed in reverse chronological order. Please use ISO format
bell_huang 3:0b9497a4b249 6 * for dates.
bell_huang 3:0b9497a4b249 7 *
bell_huang 3:0b9497a4b249 8 * when who what, where, why
bell_huang 3:0b9497a4b249 9 * ---------- --- -----------------------------------------------------------
bell_huang 3:0b9497a4b249 10 * 2016-04-29 bell Initial revision.
bell_huang 3:0b9497a4b249 11 ==============================================================================*/
bell_huang 3:0b9497a4b249 12
bell_huang 3:0b9497a4b249 13 #ifndef __pah_platform_functions_h__
bell_huang 3:0b9497a4b249 14 #define __pah_platform_functions_h__
bell_huang 3:0b9497a4b249 15 #include "stdint.h"
bell_huang 3:0b9497a4b249 16
bell_huang 3:0b9497a4b249 17 uint8_t i2c_write_reg(uint8_t addr, uint8_t data);
bell_huang 3:0b9497a4b249 18 uint8_t i2c_read_reg(uint8_t addr, uint8_t *data);
bell_huang 3:0b9497a4b249 19 uint8_t i2c_burst_read_reg(uint8_t addr, uint8_t *data, uint32_t rx_size);
bell_huang 3:0b9497a4b249 20 void delay_ms(uint64_t ms);
bell_huang 3:0b9497a4b249 21
bell_huang 3:0b9497a4b249 22 void debug_printf(const char *fmt, ...) ;
bell_huang 3:0b9497a4b249 23 #define debug_printf_1 debug_printf
bell_huang 3:0b9497a4b249 24 #define debug_printf_2 debug_printf
bell_huang 3:0b9497a4b249 25 #define debug_printf_3 debug_printf
bell_huang 3:0b9497a4b249 26 #define debug_printf_4 debug_printf
bell_huang 3:0b9497a4b249 27
bell_huang 3:0b9497a4b249 28
bell_huang 3:0b9497a4b249 29 #endif // header guard