This software drives a PCA9675 device via an I2C bus. Included functions allow you to read the device ID, set the IO direction, and read and write from the device.

Dependencies:   mbed

Committer:
DavidGilesHitex
Date:
Tue Nov 23 10:59:14 2010 +0000
Revision:
0:3331b5950572

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
DavidGilesHitex 0:3331b5950572 1 /* Hitex Standard Header File */
DavidGilesHitex 0:3331b5950572 2 /* Types As Recommended By MISRA */
DavidGilesHitex 0:3331b5950572 3
DavidGilesHitex 0:3331b5950572 4
DavidGilesHitex 0:3331b5950572 5
DavidGilesHitex 0:3331b5950572 6 /* Bytes (8bit length) */
DavidGilesHitex 0:3331b5950572 7 typedef unsigned char uint8_t;
DavidGilesHitex 0:3331b5950572 8 typedef char sint8_t;
DavidGilesHitex 0:3331b5950572 9
DavidGilesHitex 0:3331b5950572 10 /* Half Words (16bit lengths) */
DavidGilesHitex 0:3331b5950572 11 typedef unsigned short uint16_t;
DavidGilesHitex 0:3331b5950572 12 typedef short sint16_t;
DavidGilesHitex 0:3331b5950572 13
DavidGilesHitex 0:3331b5950572 14 /* Words (32bit lengths) */
DavidGilesHitex 0:3331b5950572 15 /* Also int */
DavidGilesHitex 0:3331b5950572 16 typedef unsigned int uint32_t;
DavidGilesHitex 0:3331b5950572 17 typedef long sint32_t;
DavidGilesHitex 0:3331b5950572 18
DavidGilesHitex 0:3331b5950572 19 /* Double Words */
DavidGilesHitex 0:3331b5950572 20 /* Also long long and long double */
DavidGilesHitex 0:3331b5950572 21 typedef unsigned long long uint64_t;
DavidGilesHitex 0:3331b5950572 22 typedef long long sint64_t;
DavidGilesHitex 0:3331b5950572 23
DavidGilesHitex 0:3331b5950572 24
DavidGilesHitex 0:3331b5950572 25 /*
DavidGilesHitex 0:3331b5950572 26 Constants should use the following suffixes also
DavidGilesHitex 0:3331b5950572 27
DavidGilesHitex 0:3331b5950572 28 u - Unsigned
DavidGilesHitex 0:3331b5950572 29 f - floating
DavidGilesHitex 0:3331b5950572 30 L - Long double (64bit)
DavidGilesHitex 0:3331b5950572 31
DavidGilesHitex 0:3331b5950572 32 */