Mini board PCU9669 evaluation kit library

Committer:
nxp_ip
Date:
Wed Jul 11 11:18:44 2012 +0000
Revision:
3:61ba368b0de4
Parent:
2:9a1d020f6233
for mini_board_PCU9669 v1.1 release

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nxp_ip 2:9a1d020f6233 1 /** A sample code for "mini board PCU9669/PCA9665"
nxp_ip 2:9a1d020f6233 2 *
nxp_ip 2:9a1d020f6233 3 * @author Akifumi (Tedd) OKANO, NXP Semiconductors
nxp_ip 3:61ba368b0de4 4 * @version 1.1
nxp_ip 3:61ba368b0de4 5 * @date 11-Jul-2012
nxp_ip 2:9a1d020f6233 6 *
nxp_ip 2:9a1d020f6233 7 * Released under the MIT License: http://mbed.org/license/mit
nxp_ip 2:9a1d020f6233 8 *
nxp_ip 2:9a1d020f6233 9 * An operation sample of PCU9669/PCA9665 I2C bus controller.
nxp_ip 2:9a1d020f6233 10 * The mbed accesses the bus controller's parallel port (8/2 bit address and 8 bit data) by bit-banging.
nxp_ip 2:9a1d020f6233 11 * The bit-banging is poerformed by PortInOut function of mbed library.
nxp_ip 2:9a1d020f6233 12 *
nxp_ip 2:9a1d020f6233 13 * To make the code porting easier, all codes are partitioned into layers to abstract other parts.
nxp_ip 2:9a1d020f6233 14 * The mbed specific parts are concentrated in lowest layer: "hardware_abs.*".
nxp_ip 2:9a1d020f6233 15 * This module may need to be modified for the porting.
nxp_ip 2:9a1d020f6233 16 *
nxp_ip 2:9a1d020f6233 17 * All other upper layers are writen in standard-C.
nxp_ip 2:9a1d020f6233 18 *
nxp_ip 2:9a1d020f6233 19 * base code is written from 05-Sep-2011 to 09-Sep-2011.
nxp_ip 2:9a1d020f6233 20 * And demo code has been build on 11-Sep-2011.
nxp_ip 2:9a1d020f6233 21 * Debug and code adjustment has been done on 08-Sep-2011.
nxp_ip 2:9a1d020f6233 22 * Small sanitization for main.cpp. All mbed related codes are moved in to "hardware_abs.*". 13-Oct-2011
nxp_ip 2:9a1d020f6233 23 * hardware_abs are moved into parallel_bus library folder, 3 LED driver operation sample 13-Feb.-2012
nxp_ip 2:9a1d020f6233 24 * PCU9669 and PCA9665 codes are packed in a project 14-Feb-2012.
nxp_ip 2:9a1d020f6233 25 *
nxp_ip 2:9a1d020f6233 26 * Before builidng the code, please edit the file mini_board_PCU9669/config.h
nxp_ip 2:9a1d020f6233 27 * Un-comment the target name what you want to target.
nxp_ip 2:9a1d020f6233 28 */
nxp_ip 2:9a1d020f6233 29
nxp_ip 2:9a1d020f6233 30
nxp_ip 2:9a1d020f6233 31 /** PCA9629 related definitions
nxp_ip 2:9a1d020f6233 32 *
nxp_ip 2:9a1d020f6233 33 * PCA9629's internal register name and address definitions, I2C address difinitions
nxp_ip 2:9a1d020f6233 34 */
nxp_ip 2:9a1d020f6233 35
nxp_ip 2:9a1d020f6233 36 #ifndef MINIBOARD_PCA9629_REG__
nxp_ip 2:9a1d020f6233 37 #define MINIBOARD_PCA9629_REG__
nxp_ip 2:9a1d020f6233 38
nxp_ip 2:9a1d020f6233 39
nxp_ip 2:9a1d020f6233 40 /** @var PCA9629 I2C bus addresses
nxp_ip 2:9a1d020f6233 41 */
nxp_ip 2:9a1d020f6233 42
nxp_ip 2:9a1d020f6233 43 typedef enum {
nxp_ip 2:9a1d020f6233 44 PCA9629_ADDR0 = 0x40,
nxp_ip 2:9a1d020f6233 45 PCA9629_ADDR1 = 0x42,
nxp_ip 2:9a1d020f6233 46 PCA9629_ADDR2 = 0x44,
nxp_ip 2:9a1d020f6233 47 PCA9629_ADDR3 = 0x46,
nxp_ip 2:9a1d020f6233 48 PCA9629_ADDR4 = 0x48,
nxp_ip 2:9a1d020f6233 49 PCA9629_ADDR5 = 0x4A,
nxp_ip 2:9a1d020f6233 50 PCA9629_ADDR6 = 0x4C,
nxp_ip 2:9a1d020f6233 51 PCA9629_ADDR7 = 0x4E,
nxp_ip 2:9a1d020f6233 52 PCA9629_ADDR8 = 0x50,
nxp_ip 2:9a1d020f6233 53 PCA9629_ADDR9 = 0x52,
nxp_ip 2:9a1d020f6233 54 PCA9629_ADDRA = 0x54,
nxp_ip 2:9a1d020f6233 55 PCA9629_ADDRB = 0x56,
nxp_ip 2:9a1d020f6233 56 PCA9629_ADDRC = 0x58,
nxp_ip 2:9a1d020f6233 57 PCA9629_ADDRD = 0x5A,
nxp_ip 2:9a1d020f6233 58 PCA9629_ADDRE = 0x5C,
nxp_ip 2:9a1d020f6233 59 PCA9629_ADDRF = 0x5E,
nxp_ip 2:9a1d020f6233 60 }
nxp_ip 2:9a1d020f6233 61 pca9629_addr;
nxp_ip 2:9a1d020f6233 62
nxp_ip 2:9a1d020f6233 63
nxp_ip 2:9a1d020f6233 64 #endif // MINIBOARD_PCA9629_REG__
nxp_ip 2:9a1d020f6233 65
nxp_ip 2:9a1d020f6233 66