Alex exoskeleton
ALEX SoftwareDocumentation
|
#include "CO_command.h"
#include <ctype.h>
#include <endian.h>
#include <errno.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#include "CANopen.h"
#include "CO_comm_helpers.h"
#include "CO_master.h"
Go to the source code of this file.
Macros | |
#define | CO_COMMAND_SDO_BUFFER_SIZE 100000 |
#define | STRING_BUFFER_SIZE (CO_COMMAND_SDO_BUFFER_SIZE * 4 + 100) |
#define | LISTEN_BACKLOG 50 |
Functions | |
void | CO_errorR (const uint32_t info) |
int | CO_command_init (void) |
int | CO_command_clear (void) |
void | cancomm_socketFree (char *command, char *ret) |
Variables | |
char * | CO_command_socketPath = "/tmp/CO_command_socket" |
#define CO_COMMAND_SDO_BUFFER_SIZE 100000 |
Definition at line 46 of file CO_command.c.
#define LISTEN_BACKLOG 50 |
Definition at line 50 of file CO_command.c.
#define STRING_BUFFER_SIZE (CO_COMMAND_SDO_BUFFER_SIZE * 4 + 100) |
Definition at line 49 of file CO_command.c.
void cancomm_socketFree | ( | char * | command, |
char * | ret | ||
) |
Allow main thread to send SDO messages to nodes
Definition at line 559 of file CO_command.c.
int CO_command_clear | ( | void | ) |
Terminate thread and remove socket.
Definition at line 114 of file CO_command.c.
int CO_command_init | ( | void | ) |
Initialize thread and create socket for command interface.
Make sure, that global variable CO was properly initialized before this call.
Definition at line 73 of file CO_command.c.
void CO_errorR | ( | const uint32_t | info | ) |
Definition at line 67 of file CO_command.c.
char* CO_command_socketPath = "/tmp/CO_command_socket" |
Path for local type socket. External process can access command interface over this socket. By default its path is "/tmp/CO_command_socket".
Definition at line 53 of file CO_command.c.