class pah8011 for mbed
Diff: pah8011/pah_comm.h
- Revision:
- 6:d196b612b14a
- Parent:
- 0:242cf8f28bf2
--- a/pah8011/pah_comm.h Fri Oct 27 08:21:32 2017 +0000 +++ b/pah8011/pah_comm.h Wed Jan 23 08:01:57 2019 +0000 @@ -1,23 +1,8 @@ -/*============================================================================== -* 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-10-18 bh - Add enum: pah_comm_bus_e. -* - Add function: pah_comm_get_bus_type(). -* 2016-04-12 bh - Add license information and revision information -* 2016-04-07 bh - Initial revision. -==============================================================================*/ - -#ifndef __pah_comm_h__ -#define __pah_comm_h__ +#pragma once #include "pah_platform_types.h" +#include "pah_drv_comm.h" typedef enum { @@ -28,11 +13,11 @@ } pah_comm_bus_e; +void pah_comm_set_drv_comm(const pah_drv_comm_s *drv_comm); + bool pah_comm_write(uint8_t addr, uint8_t data); bool pah_comm_read(uint8_t addr, uint8_t *data); bool pah_comm_burst_read(uint8_t addr, uint8_t *data, uint16_t num); pah_comm_bus_e pah_comm_get_bus_type(void); - -#endif // header guard