Mark Gottscho / UtilityLib

Fork of UtilityLib by Mark Gottscho

Committer:
mgottscho
Date:
Wed Mar 12 19:27:19 2014 +0000
Revision:
7:a2b7928a81a2
Child:
8:e79637fbb035
Added new C functions for byte array<->unsigned conversion.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mgottscho 7:a2b7928a81a2 1 /* util.h
mgottscho 7:a2b7928a81a2 2 * Tested with mbed board: FRDM-KL46Z
mgottscho 7:a2b7928a81a2 3 * Author: Mark Gottscho
mgottscho 7:a2b7928a81a2 4 * mgottscho@ucla.edu
mgottscho 7:a2b7928a81a2 5 */
mgottscho 7:a2b7928a81a2 6
mgottscho 7:a2b7928a81a2 7 #include "mbed.h"
mgottscho 7:a2b7928a81a2 8
mgottscho 7:a2b7928a81a2 9 uint32_t bytes_to_unsigned(uint8_t b3, uint8_t b2, uint8_t b1, uint8_t b0);
mgottscho 7:a2b7928a81a2 10 void unsigned_to_bytes(uint8_t &b3, uint8_t &b2, uint8_t &b1, uint8_t &b0);