class pah8011 for mbed
Diff: pah8011/pah_platform_functions.h
- Revision:
- 0:242cf8f28bf2
diff -r 000000000000 -r 242cf8f28bf2 pah8011/pah_platform_functions.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pah8011/pah_platform_functions.h Thu Oct 26 02:49:44 2017 +0000 @@ -0,0 +1,29 @@ +/*============================================================================== +* Edit History +* +* This section contains comments describing changes made to the module. Notice +* that changes are listed in reverse chronological order. Please use ISO format +* for dates. +* +* when who what, where, why +* ---------- --- ----------------------------------------------------------- +* 2016-04-29 bell Initial revision. +==============================================================================*/ + +#ifndef __pah_platform_functions_h__ +#define __pah_platform_functions_h__ +#include "stdint.h" + +bool i2c_write_reg(uint8_t addr, uint8_t data); +bool i2c_read_reg(uint8_t addr, uint8_t *data); +bool i2c_burst_read_reg(uint8_t addr, uint8_t *data, uint32_t rx_size); +void delay_ms(uint64_t ms); + +void debug_printf(const char *fmt, ...) ; +#define debug_printf_1 debug_printf +#define debug_printf_2 debug_printf +#define debug_printf_3 debug_printf +#define debug_printf_4 debug_printf + + +#endif // header guard