-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathco_log.h
47 lines (40 loc) · 1.06 KB
/
co_log.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*********************************************************************
* _ _ _
* _ __ | |_ _ | | __ _ | |__ ___
* | '__|| __|(_)| | / _` || '_ \ / __|
* | | | |_ _ | || (_| || |_) |\__ \
* |_| \__|(_)|_| \__,_||_.__/ |___/
*
* www.rt-labs.com
* Copyright 2017 rt-labs AB, Sweden.
*
* This software is dual-licensed under GPLv3 and a commercial
* license. See the file LICENSE.md distributed with this software for
* full license information.
********************************************************************/
/**
* @file
* @brief CAN message logging utilities
*/
#ifndef CO_LOG_H
#define CO_LOG_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stdlib.h>
/**
* Log CAN message
*
* This function logs CAN messages.
*
* @param prefix Prefix of message
* @param id CAN ID
* @param data CAN message
* @param dlc size of CAN message
*/
void co_msg_log (char * prefix, uint32_t id, const uint8_t * data, size_t dlc);
#ifdef __cplusplus
}
#endif
#endif /* CO_LOG_H */