canpb.hpp
Go to the documentation of this file.
1 // Copyright (C) 2021 COGIP Robotics association <cogip35@gmail.com>
2 // This file is subject to the terms and conditions of the GNU Lesser
3 // General Public License v2.1. See the file LICENSE in the top level
4 // directory for more details.
5 
13 
14 #pragma once
15 
16 #ifndef CANPB_READER_PRIO
17 #define CANPB_READER_PRIO (THREAD_PRIORITY_MAIN - 1)
18 #endif
19 
20 #ifndef CANPB_READER_STACKSIZE
21 #define CANPB_READER_STACKSIZE THREAD_STACKSIZE_MAIN
22 #endif
23 
24 #ifndef CANPB_INPUT_MESSAGE_LENGTH_MAX
25 #define CANPB_INPUT_MESSAGE_LENGTH_MAX 1024
26 #endif
27 
28 #ifndef CANPB_OUTPUT_MESSAGE_LENGTH_MAX
29 #define CANPB_OUTPUT_MESSAGE_LENGTH_MAX (4*1024)
30 #endif
31 
32 #ifndef CANPB_MAX_HANDLERS
33 #define CANPB_MAX_HANDLERS 16
34 #endif
35