Bruno Allaire-Lemay
/
APP1test
df
Fork of APP1 by
HomemadeMbed.hpp@15:b38d9d210e32, 2017-01-17 (annotated)
- Committer:
- dupm2216
- Date:
- Tue Jan 17 00:06:38 2017 +0000
- Revision:
- 15:b38d9d210e32
- Parent:
- 14:2f89279586cb
- Child:
- 21:a111be2582be
Fini?
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GaiSensei | 13:bb9669053eb3 | 1 | #ifndef HOMEMADE_MBED_HPP |
GaiSensei | 13:bb9669053eb3 | 2 | #define HOMEMADE_MBED_HPP |
GaiSensei | 13:bb9669053eb3 | 3 | |
GaiSensei | 13:bb9669053eb3 | 4 | namespace homemade_mbed |
GaiSensei | 13:bb9669053eb3 | 5 | { |
GaiSensei | 14:2f89279586cb | 6 | unsigned int read_bits(unsigned int* address_4_bytes, const int start_bit, const int stop_bit); |
GaiSensei | 14:2f89279586cb | 7 | void write_bits(unsigned int* address_4_bytes, const int start_bit, const int stop_bit, const unsigned int new_value); |
dupm2216 | 15:b38d9d210e32 | 8 | //Reserved bits: 0 |
dupm2216 | 15:b38d9d210e32 | 9 | //Non-reserved bits: 1 |
dupm2216 | 15:b38d9d210e32 | 10 | unsigned int get_reserved_bits_mask(unsigned int* address_4_bytes); |
GaiSensei | 13:bb9669053eb3 | 11 | } |
GaiSensei | 13:bb9669053eb3 | 12 | |
GaiSensei | 13:bb9669053eb3 | 13 | #endif |