#include "downloader.h"
#include "driver.h"
#include <yarp/os/Time.h>
#include <yarp/os/Log.h>
#include <yarp/dev/Drivers.h>
#include <string>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <iCubCanProtocol.h>
#include <iCubCanProto_types.h>
 
Go to the source code of this file.
◆ ALL_OK
◆ DOWNLOADERR_BOARD_NOT_SEL
      
        
          | #define DOWNLOADERR_BOARD_NOT_SEL   -21 | 
        
      
 
 
◆ DOWNLOADERR_BOARD_NOT_START
      
        
          | #define DOWNLOADERR_BOARD_NOT_START   -24 | 
        
      
 
 
◆ DOWNLOADERR_FILE_NOT_OPEN
      
        
          | #define DOWNLOADERR_FILE_NOT_OPEN   -23 | 
        
      
 
 
◆ DOWNLOADERR_FILE_NOT_SEL
      
        
          | #define DOWNLOADERR_FILE_NOT_SEL   -22 | 
        
      
 
 
◆ DOWNLOADERR_NOT_CONNECTED
      
        
          | #define DOWNLOADERR_NOT_CONNECTED   -20 | 
        
      
 
 
◆ DOWNLOADERR_TRANSFER_ERROR
      
        
          | #define DOWNLOADERR_TRANSFER_ERROR   -25 | 
        
      
 
 
◆ ERR_BOARD_ID_NOT_FOUND
      
        
          | #define ERR_BOARD_ID_NOT_FOUND   -11 | 
        
      
 
 
◆ ERR_NO_BOARDS_FOUND
      
        
          | #define ERR_NO_BOARDS_FOUND   -10 | 
        
      
 
 
◆ ERR_NO_NETWORK_INTERFACE
      
        
          | #define ERR_NO_NETWORK_INTERFACE   -13 | 
        
      
 
 
◆ ERR_UNKNOWN
◆ INVALID_CMD_STRING
      
        
          | #define INVALID_CMD_STRING   -1 | 
        
      
 
 
◆ INVALID_PARAM_BOARDID
      
        
          | #define INVALID_PARAM_BOARDID   -4 | 
        
      
 
 
◆ INVALID_PARAM_CANNUM
      
        
          | #define INVALID_PARAM_CANNUM   -3 | 
        
      
 
 
◆ INVALID_PARAM_CANTYPE
      
        
          | #define INVALID_PARAM_CANTYPE   -2 | 
        
      
 
 
◆ INVALID_PARAM_FILE
      
        
          | #define INVALID_PARAM_FILE   -5 | 
        
      
 
 
◆ compile_ip_addresses()
  
  
      
        
          | static bool compile_ip_addresses  | 
          ( | 
          const char *  | 
          addr | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ download_click()
  
  
      
        
          | static int download_click  | 
          ( | 
          std::string *  | 
          user_data | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ fatal_error()
      
        
          | void fatal_error  | 
          ( | 
          int  | 
          err | ) | 
           | 
        
      
 
 
◆ main()
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char *  | 
          argv[]  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ myMain()
      
        
          | int myMain  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char *  | 
          argv[]  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ start_end_click()
  
  
      
        
          | static void start_end_click  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ validate_selection()
      
        
          | bool validate_selection  | 
          ( | 
          int  | 
          wanted_type | ) | 
           | 
        
      
 
 
◆ calibration_enabled
      
        
          | bool calibration_enabled =false | 
        
      
 
 
◆ canID
◆ downloader
◆ localAddr
      
        
          | unsigned int localAddr =0 | 
        
      
 
 
◆ maxNetworks
      
        
          | const int maxNetworks =10 | 
        
      
 
 
◆ networkId
◆ networkType
◆ prompt_version
      
        
          | bool prompt_version =false | 
        
      
 
 
◆ remoteAddr
      
        
          | unsigned int remoteAddr =0 |