Files | |
| file | misc.h |
Classes | |
| struct | date_s_t |
| struct | time_s_t |
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) |
| double battery_get_capacity | ( | void | ) |
Gets the current capacity of the battery, as reported by VEXos.
This function uses the following values of errno when an error state is reached: EACCES - Another resource is currently trying to access the battery port.
Example
| int32_t battery_get_current | ( | void | ) |
Gets the current current of the battery, as reported by VEXos.
This function uses the following values of errno when an error state is reached: EACCES - Another resource is currently trying to access the battery port.
Example
| double battery_get_temperature | ( | void | ) |
Gets the current temperature of the battery, as reported by VEXos.
This function uses the following values of errno when an error state is reached: EACCES - Another resource is currently trying to access the battery port.
Example
| int32_t battery_get_voltage | ( | void | ) |
Example
| uint8_t competition_get_status | ( | void | ) |
Get the current status of the competition control.
Example
| uint8_t competition_is_autonomous | ( | void | ) |
Example
| uint8_t competition_is_connected | ( | void | ) |
Example
| uint8_t competition_is_disabled | ( | void | ) |
Example
| uint8_t competition_is_field | ( | void | ) |
Example
| int32_t usd_is_installed | ( | void | ) |
Checks if the SD card is installed.
Example
| int32_t usd_list_files | ( | const char * | path, |
| char * | buffer, | ||
| int32_t | len ) |
Lists the files in a directory specified by the path Puts the list of file names (NOT DIRECTORIES) into the buffer seperated by newlines
This function uses the following values of errno when an error state is reached:
EIO - Hard error occured in the low level disk I/O layer EINVAL - file or directory is invalid, or length is invalid EBUSY - THe physical drinve cannot work ENOENT - cannot find the path or file EINVAL - the path name format is invalid EACCES - Access denied or directory full EEXIST - Access denied EROFS - SD card is write protected ENXIO - drive number is invalid or not a FAT32 drive ENOBUFS - drive has no work area ENFILE - too many open files
|
extern |
Date and Time