|
TTK4155 Lab Node 1
Term project in the NTNU course TTK4155 Embedded and Industrial Computer Systems Design
|
Data Structures | |
| struct | control_state |
| Stores current control state. More... | |
Functions | |
| uint8_t | process_can_frame (struct control_state *ctrl) |
| Processes an incoming CAN frame. | |
| int8_t | tx_joy_btn (struct io_joystick_device *joy_dev, struct io_avr_device *avr_dev, struct can_device *can_dev) |
| Transmits joystick positions and button states via CAN. | |
| int8_t | tx_gamestart (struct can_device *can_dev) |
| Sends a game start message via CAN. | |
| int8_t | tx_reset (struct can_device *can_dev) |
| Sends a reset message via CAN. | |
| int8_t | tx_error (struct can_device *can_dev) |
| Sends an error message via CAN. | |
| uint8_t process_can_frame | ( | struct control_state * | ctrl | ) |
#include <controller.h>
Processes an incoming CAN frame.
| ctrl | Pointer to control state struct |
Definition at line 15 of file controller.c.
Referenced by main().
| int8_t tx_error | ( | struct can_device * | can_dev | ) |
#include <controller.h>
Sends an error message via CAN.
| can_dev | Pointer to CAN device |
Definition at line 78 of file controller.c.
| int8_t tx_gamestart | ( | struct can_device * | can_dev | ) |
#include <controller.h>
Sends a game start message via CAN.
| can_dev | Pointer to CAN device |
Definition at line 58 of file controller.c.
Referenced by main().
| int8_t tx_joy_btn | ( | struct io_joystick_device * | joy_dev, |
| struct io_avr_device * | avr_dev, | ||
| struct can_device * | can_dev ) |
#include <controller.h>
Transmits joystick positions and button states via CAN.
| joy_dev | Pointer to joystick device |
| avr_dev | Pointer to I/O board device |
| can_dev | Pointer to CAN device |
Definition at line 34 of file controller.c.
Referenced by main().
| int8_t tx_reset | ( | struct can_device * | can_dev | ) |
#include <controller.h>
Sends a reset message via CAN.
| can_dev | Pointer to CAN device |
Definition at line 68 of file controller.c.