EV3 file operations. More...
Go to the source code of this file.
Macros | |
#define | EV3_VAR(decl) extern decl |
#define | EV3_VAR_INIT(decl, ...) extern decl |
#define | EV3_INL inline |
#define | STR_unknown_ "<unknown>" |
Typedefs | |
typedef uint8_t | byte |
typedef uint32_t | dword |
typedef uint8_t | INX_T |
typedef uint8_t | FLAGS_T |
Functions | |
EV3_VAR_INIT (char *ev3_brick_addr, NULL) | |
Predefined IP address of the EV3 brick. | |
EV3_VAR_INIT (uint16_t ev3_brick_port, 8800) | |
UDP port of the EV3 brick. | |
int | ev3_init (void) |
Initialize the remote access and detect the EV3 brick. This function do nothing in the case of the local access. To disable the brick detection just specify IP address before the call of this function. More... | |
void | ev3_uninit (void) |
Uninitialize the remote access. | |
size_t | ev3_write_binary (const char *fn, char *data, size_t sz) |
Write binary data into the specified file of the EV3 brick. More... | |
size_t | ev3_write (const char *fn, char *value) |
Write a string into the specified file. More... | |
size_t | ev3_write_bool (const char *fn, bool value) |
Write a boolean value into the specified file. More... | |
size_t | ev3_write_int (const char *fn, int value) |
Write an integer value into the specified file. More... | |
size_t | ev3_write_dword (const char *fn, uint32_t value) |
Write an unsigned integer value into the specified file. More... | |
size_t | ev3_write_byte (const char *fn, uint8_t value) |
Write a byte value into the specified file. More... | |
size_t | ev3_write_float (const char *fn, float value) |
Write a float value into the specified file. More... | |
size_t | ev3_write_char_array (const char *fn, char *value) |
size_t | ev3_write_byte_array (const char *fn, uint8_t *value, size_t sz) |
size_t | ev3_multi_write_binary (uint8_t *sn, uint16_t pos, const char *fn, char *data, size_t sz) |
Write binary data into several specified files of the EV3 brick. More... | |
size_t | ev3_multi_write (uint8_t *sn, uint16_t pos, const char *fn, char *value) |
size_t | ev3_multi_write_bool (uint8_t *sn, uint16_t pos, const char *fn, bool value) |
size_t | ev3_multi_write_int (uint8_t *sn, uint16_t pos, const char *fn, int value) |
size_t | ev3_multi_write_dword (uint8_t *sn, uint16_t pos, const char *fn, uint32_t value) |
size_t | ev3_multi_write_byte (uint8_t *sn, uint16_t pos, const char *fn, uint8_t value) |
size_t | ev3_multi_write_float (uint8_t *sn, uint16_t pos, const char *fn, float value) |
size_t | ev3_multi_write_char_array (uint8_t *sn, uint16_t pos, const char *fn, char *value) |
size_t | ev3_multi_write_byte_array (uint8_t *sn, uint16_t pos, const char *fn, uint8_t *value, size_t sz) |
size_t | ev3_read_binary (const char *fn, char *buf, size_t sz) |
Read binary data from the specified file. More... | |
size_t | ev3_read (const char *fn, char *buf, size_t sz) |
Read a string from the specified file. More... | |
size_t | ev3_read_bool (const char *fn, bool *buf) |
Read a boolean value from the specified file. More... | |
size_t | ev3_read_int (const char *fn, int *buf) |
Read an integer value from the specified file. More... | |
size_t | ev3_read_dword (const char *fn, uint32_t *buf) |
Read an unsigned integer value from the specified file. More... | |
size_t | ev3_read_byte (const char *fn, uint8_t *buf) |
Read a byte value from the specified file. More... | |
size_t | ev3_read_float (const char *fn, float *buf) |
Read a float value from the specified file. More... | |
size_t | ev3_read_char_array (const char *fn, char *buf, size_t sz) |
size_t | ev3_read_byte_array (const char *fn, uint8_t *buf, size_t sz) |
size_t | ev3_listdir (const char *fn, char *buf, size_t sz) |
List files in the specified directory of the EV3 brick. More... | |
size_t | ev3_read_keys (uint8_t *buf) |
Read state of the EV3 brick's keys. More... | |
bool | ev3_poweroff (void) |
Power-off the EV3 brick. More... | |
int | ev3_string_suffix (const char *prefix, char **s, uint32_t *buf) |
Get a numerical suffix of the string. More... | |
EV3 file operations.
(ev3.yu-h)