class pah8011 for mbed

Committer:
bell_huang
Date:
Thu Oct 26 02:49:44 2017 +0000
Revision:
0:242cf8f28bf2
Init version

Who changed what in which revision?

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