ZestCode
 
Loading...
Searching...
No Matches
misc.h File Reference
#include <stdint.h>

Go to the source code of this file.

Classes

struct  date_s_t
 
struct  time_s_t
 

Macros

#define NUM_V5_PORTS   (22)
 

V5 Competition

enum  competition_status { COMPETITION_DISABLED = 1 << 0 , COMPETITION_CONNECTED = 1 << 2 , COMPETITION_AUTONOMOUS = 1 << 1 , COMPETITION_SYSTEM = 1 << 3 }
 
const char * baked_date
 
const char * baked_time
 
uint8_t competition_get_status (void)
 
uint8_t competition_is_disabled (void)
 
uint8_t competition_is_connected (void)
 
uint8_t competition_is_autonomous (void)
 
uint8_t competition_is_field (void)
 
int32_t battery_get_voltage (void)
 
int32_t battery_get_current (void)
 
double battery_get_temperature (void)
 
double battery_get_capacity (void)
 
int32_t usd_is_installed (void)
 
int32_t usd_list_files (const char *path, char *buffer, int32_t len)
 

Detailed Description

Contains prototypes for miscellaneous functions pertaining to the controller, battery, and competition control.

This file should not be modified by users, since it gets replaced whenever a kernel upgrade occurs.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.