PHiLIP
trace.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 
19 #ifndef TRACE_H_
20 #define TRACE_H_
21 
22 /* Defines ********************************************************************/
30 };
31 
33 enum EVENT_TYPE {
36 };
37 
38 /* Function prototypes ********************************************************/
45 void init_trace(map_t *reg);
46 
56 void store_gpio_trace(uint8_t tick_div, uint8_t source, uint16_t value);
57 
67 void store_tick_from_buf(uint8_t source, uint16_t value, uint32_t tick);
68 
69 #endif /* TRACE_H_ */
70 
Definition: trace.h:27
Definition: trace.h:26
Definition: trace.h:34
EVENT_TYPE
Type of trigger causing the event.
Definition: trace.h:33
void store_tick_from_buf(uint8_t source, uint16_t value, uint32_t tick)
Stores an ticks saved from a buffer.
Definition: trace.c:58
void init_trace(map_t *reg)
Initializes trace register.
Definition: trace.c:40
The memory map.
Definition: PHiLIP_typedef.h:340
void store_gpio_trace(uint8_t tick_div, uint8_t source, uint16_t value)
Stores an gpio toggle event.
Definition: trace.c:47
Definition: trace.h:28
EVENT_SOURCES
The sources of an event.
Definition: trace.h:24
Definition: trace.h:35
Definition: trace.h:25
Definition: trace.h:29