demo sample to drive PCU9955 and PCA9629
Dependencies: mbed I2C_slaves PCU9669 parallel_bus
Fork of mini_board_PCU9669 by
PCA9629_reg.h
00001 /* A sample code for PCU9669 (and its family) operation sample 00002 * 00003 * @author Tedd OKANO, NXP Semiconductors 00004 * @version 0.5 00005 * @date 13-Oct-2011 00006 * 00007 * Released under the MIT License: http://mbed.org/license/mit 00008 * 00009 * An operation sample of PCU9669 I2C bus controller. 00010 * The mbed accesses the PCU9669's parallel port (8 bit address and 8 bit data) using bit-banging. 00011 * The bit-banging is poerformed by PortInOut function of mbed library. 00012 * 00013 * To make the code porting easier, all codes are partitioned into layers to abstract other parts. 00014 * The mbed specific parts are concentrated in lowest layer: "hardware_abs.*". 00015 * This module may need to be modified when porting. 00016 * 00017 * All other upper layers are writen in standard-C. 00018 * 00019 * base code is written from 05-Sep-2011 to 09-Sep-2011. 00020 * And demo code has been build on 11-Sep-2011. 00021 * Debug and code adjustment has been done on 08-Sep-2011. 00022 * Small sanitization for main.cpp. All mbed related codes are moved in to "hardware_abs.*". 13-Oct-2011 00023 */ 00024 00025 /** PCA9629 related definitions 00026 * 00027 * This header file was intended to define the PCA9629 registers but those details are not required in this application. 00028 * So this file only have I2C addresses definitions 00029 */ 00030 00031 #ifndef __PCA9629_REG__ 00032 #define __PCA9629_REG__ 00033 00034 /** @var PCA9629 I2C bus addresses 00035 */ 00036 00037 typedef enum { 00038 MOT_ADDR0 = 0x40, 00039 MOT_ADDR1 = 0x42, 00040 MOT_ADDR2 = 0x44, 00041 MOT_ADDR3 = 0x46, 00042 MOT_ADDR4 = 0x48, 00043 MOT_ADDR5 = 0x4A, 00044 MOT_ADDR6 = 0x4C, 00045 MOT_ADDR7 = 0x4E, 00046 MOT_ADDR8 = 0x50, 00047 MOT_ADDR9 = 0x52 00048 } 00049 pca9629_addr; 00050 00051 00052 #endif // __PCA9629_REG__
Generated on Fri Jul 22 2022 13:11:42 by 1.7.2