Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of UtilityLib by
util.h@8:e79637fbb035, 2014-03-12 (annotated)
- Committer:
- mgottscho
- Date:
- Wed Mar 12 19:47:18 2014 +0000
- Revision:
- 8:e79637fbb035
- Parent:
- 7:a2b7928a81a2
- Child:
- 9:f71dc1b426da
Bugfix
Who changed what in which revision?
User | Revision | Line number | New 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 | 8:e79637fbb035 | 10 | void unsigned_to_bytes(const uint32_t var, uint8_t &b3, uint8_t &b2, uint8_t &b1, uint8_t &b0); |