/* * ProtectedMemory.hh * * Created on: 6 апр. 2021 г. * Author: titov */ #ifndef UMLIBRARY_PERIPHERAL_PROTECTEDMEMORY_HH_ #define UMLIBRARY_PERIPHERAL_PROTECTEDMEMORY_HH_ #include #include namespace peripheral { typedef char protected_char; extern bool (*write_lock) ( protected_char * begin, std::size_t size ); extern void (*write_unlock) ( protected_char * begin, std::size_t size ); extern bool (*read_lock) ( const protected_char * begin, std::size_t size ); extern void (*read_unlock) ( const protected_char * begin, std::size_t size ); } #endif /* UMLIBRARY_PERIPHERAL_PROTECTEDMEMORY_HH_ */