Mark Gottscho / UtilityLib

Fork of UtilityLib by Mark Gottscho

util.h

Committer:
mgottscho
Date:
2014-03-12
Revision:
8:e79637fbb035
Parent:
7:a2b7928a81a2
Child:
9:f71dc1b426da

File content as of revision 8:e79637fbb035:

/* util.h
 * Tested with mbed board: FRDM-KL46Z
 * Author: Mark Gottscho
 * mgottscho@ucla.edu
 */
 
#include "mbed.h"

uint32_t bytes_to_unsigned(uint8_t b3, uint8_t b2, uint8_t b1, uint8_t b0);
void unsigned_to_bytes(const uint32_t var, uint8_t &b3, uint8_t &b2, uint8_t &b1, uint8_t &b0);