![]() |
Siphon Regulator 1.0
Nanosattelite attitude determination and control system.
|
: Header for main.c file. This file contains the common defines of the application. More...
#include "stm32f1xx_hal.h"Go to the source code of this file.
Data Structures | |
| struct | sensor_data_t |
| struct | settings_t |
Macros | |
| #define | _read_BV(reg, bit) |
| #define | _set_BV(reg, bit) |
| #define | _clr_BV(reg, bit) |
| #define | _tog_BV(reg, bit) |
| #define | _clr_time(reg) |
| #define | _set_time(reg, time_l, time_r) |
| #define | _read_time_r(reg) |
| #define | _read_time_l(reg) |
| #define | _float2int(data_fl) |
| #define | BOARD_LED_Pin GPIO_PIN_13 |
| #define | BOARD_LED_GPIO_Port GPIOC |
| #define | VALVE_R_Pin GPIO_PIN_2 |
| #define | VALVE_R_GPIO_Port GPIOA |
| #define | VALVE_L_Pin GPIO_PIN_3 |
| #define | VALVE_L_GPIO_Port GPIOA |
| #define | LED_R_Pin GPIO_PIN_5 |
| #define | LED_R_GPIO_Port GPIOA |
| #define | LED_Y_Pin GPIO_PIN_6 |
| #define | LED_Y_GPIO_Port GPIOA |
| #define | LED_G_Pin GPIO_PIN_7 |
| #define | LED_G_GPIO_Port GPIOA |
| #define | SPI2_CS_Pin GPIO_PIN_9 |
| #define | SPI2_CS_GPIO_Port GPIOB |
| #define | RUN_BIT 0 |
| #define | DIR_BIT 1 |
| #define | PULSE_BIT 2 |
| #define | TURN_BIT 3 |
| #define | REG_BIT 4 |
| #define | RETURN_BIT 5 |
| #define | HOME_BIT 7 |
| #define | AUTOREAD_BIT 24 |
| #define | AUTOREAD_ACC_BIT 25 |
| #define | AUTOREAD_GYR_BIT 26 |
| #define | AUTOREAD_POS_BIT 27 |
| #define | PULSE_REPRE 10 |
| #define | _read_valve(reg) |
| #define | CAL_MUL ((360.0f/328.0f)*(360.0f/349.0f)) |
| #define | CMD0_BIT 28 |
| #define | CMD1_BIT 29 |
| #define | CMD2_BIT 30 |
| #define | CMD3_BIT 31 |
Functions | |
| void | Error_Handler (void) |
| This function is executed in case of error occurrence. | |
: Header for main.c file. This file contains the common defines of the application.
Copyright (c) 2026 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file main.h.
| #define _clr_BV | ( | reg, | |
| bit ) |
| #define _clr_time | ( | reg | ) |
| #define _float2int | ( | data_fl | ) |
| #define _read_BV | ( | reg, | |
| bit ) |
| #define _read_time_l | ( | reg | ) |
| #define _read_time_r | ( | reg | ) |
| #define _read_valve | ( | reg | ) |
| #define _set_BV | ( | reg, | |
| bit ) |
| #define _set_time | ( | reg, | |
| time_l, | |||
| time_r ) |
| #define _tog_BV | ( | reg, | |
| bit ) |
| #define AUTOREAD_ACC_BIT 25 |
| #define AUTOREAD_BIT 24 |
| #define AUTOREAD_GYR_BIT 26 |
| #define AUTOREAD_POS_BIT 27 |
| #define CAL_MUL ((360.0f/328.0f)*(360.0f/349.0f)) |
| #define CMD0_BIT 28 |
| #define HOME_BIT 7 |
| #define PULSE_BIT 2 |
| #define REG_BIT 4 |
| #define RETURN_BIT 5 |
| #define TURN_BIT 3 |