MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/peripheral/ProtectedMemory.hh

28 lines
649 B
C++
Raw Normal View History

2024-06-07 11:12:56 +03:00
/*
* ProtectedMemory.hh
*
* Created on: 6 апр. 2021 г.
* Author: titov
*/
#ifndef UMLIBRARY_PERIPHERAL_PROTECTEDMEMORY_HH_
#define UMLIBRARY_PERIPHERAL_PROTECTEDMEMORY_HH_
#include <cstddef>
#include <cstdio>
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_ */