PHiLIP
map_if.h
Go to the documentation of this file.
1 /*
2  * Copyright 2020 Kevin Weiss for HAW Hamburg
3  *
4  * This file is subject to the terms and conditions of the MIT License. See the
5  * file LICENSE in the top level directory for more details.
6  * SPDX-License-Identifier: MIT
7  */
8 
21 #ifndef MAP_IF_H_
22 #define MAP_IF_H_
23 
24 /* Function prototypes ********************************************************/
34 error_t get_mm(uint16_t index, char* str);
35 
47 error_t get_mm_val(char* mm_name, uint32_t array_index, uint32_t *data);
48 
61 error_t set_mm_val(char* mm_name, uint32_t array_index, uint32_t data,
62  uint8_t access);
63 
64 #endif /* MAP_IF_H_ */
65 
error_t get_mm_val(char *mm_name, uint32_t array_index, uint32_t *data)
Gets the value of a record in the memory map.
Definition: map_if.c:53
error_t get_mm(uint16_t index, char *str)
Gets parameters of a record in the memory map.
Definition: map_if.c:40
error_t set_mm_val(char *mm_name, uint32_t array_index, uint32_t data, uint8_t access)
Sets the value of a record in the memory map.
Definition: map_if.c:79