Bruno Allaire-Lemay
/
APP1test
df
Fork of APP1 by
HomemadeMbed.hpp
- Committer:
- GaiSensei
- Date:
- 2017-02-09
- Revision:
- 23:2531e72d92b9
- Parent:
- 21:a111be2582be
File content as of revision 23:2531e72d92b9:
///////////////////////////////////////////////////////////// // APP 1: Systèmes à microprocesseurs // // // // Université de Sherbrooke // // Génie informatique // // Session 5, Hiver 2017 // // // // Date: 17 janvier 2017 // // // // Auteurs: Maxime Dupuis, dupm2216 // // Bruno Allaire-Lemay, allb2701 // ///////////////////////////////////////////////////////////// #ifndef HOMEMADE_MBED_HPP #define HOMEMADE_MBED_HPP namespace homemade_mbed { unsigned int read_bits(unsigned int* address_4_bytes, const int start_bit, const int stop_bit); void write_bits(unsigned int* address_4_bytes, const int start_bit, const int stop_bit, const unsigned int new_value); //Reserved bits: 0 //Non-reserved bits: 1 unsigned int get_reserved_bits_mask(unsigned int* address_4_bytes); } #endif