MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/peripheral/ProtectedMemory.hh
2024-06-07 11:12:56 +03:00

28 lines
649 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 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_ */