This repository has been archived on 2024-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
SummerSchool2-Controller/306-controller_interface.X/app/can_message.h

44 lines
1.6 KiB
C
Raw Normal View History

2023-08-25 12:13:51 +00:00
/**
* @author R<EFBFBD>mi Heredero
* @version 1.0.0
* @date August 2023
* @file can_message.h
*/
#ifndef CAN_MESSAGE_H
#define CAN_MESSAGE_H
2023-08-27 19:35:19 +00:00
#include <stdint.h> // usage of standard types
#include <stdbool.h> // usage of boolean types
#include "../mcc_generated_files/mcc.h"
2023-08-25 12:13:51 +00:00
/*
S R M
1 0 F CONTROL_ALIVE - - - -
1 2 0 JOY_SETUP Mode Param1 Param2 aliveTime
1 3 0 DISPLAY_SETUP reset - - aliveTime
1 3 2 DISPLAY_SPEED valH valL - -
1 3 3 DISPLAY_DIRECTION direction - - -
1 4 0 DRIVE_SETUP Reset/init speedTime stopTime aliveTime
1 4 1 DRIVE_POWER valH valL - -
1 5 0 STEERING_SETUP Reset/init homing setCenter aliveTime
1 5 1 STEERING_SET valHH valH valL valLL
1 6 0 SETUP_CONTROL batteryVoltTime batteryCurrentTime batteryEnergyTime aliveTime
*/
2023-08-25 16:23:36 +00:00
void CM_processIncome(uint8_t idSender, uint8_t idMsg, uint32_t data);
void CM_CONTROLLER_ALIVE(void* p);
void CM_JOY_SETUP(void* p);
void CM_DISPLAY_SETUP(void* p);
void CM_DISPLAY_SPEED(void* p);
void CM_DISPLAY_DIRECTION(void* p);
void CM_DRIVE_SETUP(void* p);
void CM_DRIVE_POWER(void* p);
void CM_STEERING_SETUP(void* p);
void CM_STEERING_SET(void* p);
void CM_SETUP_CONTROL(void* p);
2023-08-25 12:13:51 +00:00
#endif /* CAN_MESSAGE_H */