|
Stima V4 Slave RAIN
4.2
|
Uavcan over CanBus cpp_Freertos header file. More...
#include "debug_config.h"#include "local_typedef.h"#include "str.h"#include "stima_utility.h"#include <STM32FreeRTOS.h>#include "thread.hpp"#include "ticks.hpp"#include "semaphore.hpp"#include "queue.hpp"#include "drivers/module_slave_hal.hpp"#include <STM32RTC.h>#include <STM32LowPower.h>#include "canard_config.hpp"#include "register_class.hpp"#include "drivers/flash.h"#include "canard_class_rain.hpp"#include <canard.h>#include "bxcan.h"#include <uavcan/node/Heartbeat_1_0.h>#include <uavcan/node/GetInfo_1_0.h>#include <uavcan/node/ExecuteCommand_1_1.h>#include <uavcan/node/port/List_0_1.h>#include <uavcan/_register/Access_1_0.h>#include <uavcan/_register/List_1_0.h>#include <uavcan/file/Read_1_1.h>#include <uavcan/time/Synchronization_1_0.h>#include <uavcan/pnp/NodeIDAllocationData_1_0.h>#include <rmap/_module/Rain_1_0.h>#include <rmap/service/_module/Rain_1_0.h>#include <stdio.h>#include <stdlib.h>#include <assert.h>#include <time.h>#include <unistd.h>#include "debug_F.h"Go to the source code of this file.
Classes | |
| struct | CanParam_t |
| struct local elaborate data parameter More... | |
| class | CanTask |
| CAN TASK cpp_freertos class. More... | |
Macros | |
| #define | CAN_TASK_WAIT_DELAY_MS (20) |
| #define | CAN_TASK_WAIT_MAXSPEED_DELAY_MS (1) |
| #define | CAN_TASK_SLEEP_DELAY_MS (850) |
| #define | CAN_SEMAPHORE_MAX_WAITING_TIME_MS (1000) |
| #define | FLASH_SEMAPHORE_MAX_WAITING_TIME_MS (3000) |
| #define | CAN_FLAG_IS_MAINTENANCE_MODE (0x08) |
| #define | CAN_FLAG_MASK_MAINTENANCE_MODE (0x07) |
Enumerations | |
| enum | CAN_ModePower { CAN_INIT , CAN_NORMAL , CAN_LISTEN_ONLY , CAN_SLEEP } |
| Mode Power HW CanBus Controller state. More... | |
Uavcan over CanBus cpp_Freertos header file.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/licenses/.
Definition in file can_task.h.
| #define CAN_FLAG_IS_MAINTENANCE_MODE (0x08) |
Definition at line 96 of file can_task.h.
| #define CAN_FLAG_MASK_MAINTENANCE_MODE (0x07) |
Definition at line 97 of file can_task.h.
| #define CAN_SEMAPHORE_MAX_WAITING_TIME_MS (1000) |
Definition at line 92 of file can_task.h.
| #define CAN_TASK_SLEEP_DELAY_MS (850) |
Definition at line 89 of file can_task.h.
| #define CAN_TASK_WAIT_DELAY_MS (20) |
Definition at line 87 of file can_task.h.
| #define CAN_TASK_WAIT_MAXSPEED_DELAY_MS (1) |
Definition at line 88 of file can_task.h.
| #define FLASH_SEMAPHORE_MAX_WAITING_TIME_MS (3000) |
Definition at line 93 of file can_task.h.
| enum CAN_ModePower |
Mode Power HW CanBus Controller state.
| Enumerator | |
|---|---|
| CAN_INIT | CAN is in init or configuration mode. |
| CAN_NORMAL | CAN is in normal state (TX and RX Ready) |
| CAN_LISTEN_ONLY | CAN in only listen mode (turn off TX board) |
| CAN_SLEEP | Power CAN is OFF. |
Definition at line 104 of file can_task.h.