iCub-main
Classes | Macros | Enumerations | Functions
downloader.h File Reference
#include <yarp/os/Searchable.h>
#include <yarp/dev/CanBusInterface.h>
#include <fstream>
#include "stdint.h"
#include "driver.h"
#include "EoBoards.h"
#include "EoCommon.h"
#include <iCubCanProto_types.h>
+ Include dependency graph for downloader.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sBoard
 
struct  strain2_ampl_regs_t
 
class  cDownloader
 
struct  cDownloader::strain_value_t
 

Macros

#define BOARD_RUNNING   0
 
#define BOARD_WAITING   1
 
#define BOARD_WAITING_ACK   2
 
#define BOARD_DOWNLOADING   3
 
#define BOARD_OK   4
 
#define BOARD_ERR   5
 
#define SPRS_STATE_WAIT   0
 
#define SPRS_STATE_TYPE   1
 
#define SPRS_STATE_ADDRESS   2
 
#define SPRS_STATE_LENGTH   3
 
#define SPRS_STATE_DATA   4
 
#define SPRS_STATE_CHECKSUM   5
 
#define SPRS_TYPE_0   '0'
 
#define SPRS_TYPE_1   '1'
 
#define SPRS_TYPE_3   '3'
 
#define SPRS_TYPE_4   '4'
 
#define SPRS_TYPE_7   '7'
 
#define ID_MASTER   0x00
 
#define ID_BROADCAST   0x0F
 
#define DOWNLOADER_USE_IDRIVER2
 
#define DOWNLOADER_ETH_SUPPORTS_MULTIBUS
 

Enumerations

enum  strain2_ampl_discretegain_t : int {
  ampl_gain256 = 0,
  ampl_gain128,
  ampl_gain96,
  ampl_gain64,
  ampl_gain48,
  ampl_gain36,
  ampl_gain24,
  ampl_gain20,
  ampl_gain16,
  ampl_gain10,
  ampl_gain08,
  ampl_gain06,
  ampl_gain04
}
 

Functions

void drv_sleep (double time)
 

Macro Definition Documentation

◆ BOARD_DOWNLOADING

#define BOARD_DOWNLOADING   3

Definition at line 48 of file downloader.h.

◆ BOARD_ERR

#define BOARD_ERR   5

Definition at line 50 of file downloader.h.

◆ BOARD_OK

#define BOARD_OK   4

Definition at line 49 of file downloader.h.

◆ BOARD_RUNNING

#define BOARD_RUNNING   0

Definition at line 45 of file downloader.h.

◆ BOARD_WAITING

#define BOARD_WAITING   1

Definition at line 46 of file downloader.h.

◆ BOARD_WAITING_ACK

#define BOARD_WAITING_ACK   2

Definition at line 47 of file downloader.h.

◆ DOWNLOADER_ETH_SUPPORTS_MULTIBUS

#define DOWNLOADER_ETH_SUPPORTS_MULTIBUS

Definition at line 90 of file downloader.h.

◆ DOWNLOADER_USE_IDRIVER2

#define DOWNLOADER_USE_IDRIVER2

Definition at line 85 of file downloader.h.

◆ ID_BROADCAST

#define ID_BROADCAST   0x0F

Definition at line 66 of file downloader.h.

◆ ID_MASTER

#define ID_MASTER   0x00

Definition at line 65 of file downloader.h.

◆ SPRS_STATE_ADDRESS

#define SPRS_STATE_ADDRESS   2

Definition at line 54 of file downloader.h.

◆ SPRS_STATE_CHECKSUM

#define SPRS_STATE_CHECKSUM   5

Definition at line 57 of file downloader.h.

◆ SPRS_STATE_DATA

#define SPRS_STATE_DATA   4

Definition at line 56 of file downloader.h.

◆ SPRS_STATE_LENGTH

#define SPRS_STATE_LENGTH   3

Definition at line 55 of file downloader.h.

◆ SPRS_STATE_TYPE

#define SPRS_STATE_TYPE   1

Definition at line 53 of file downloader.h.

◆ SPRS_STATE_WAIT

#define SPRS_STATE_WAIT   0

Definition at line 52 of file downloader.h.

◆ SPRS_TYPE_0

#define SPRS_TYPE_0   '0'

Definition at line 59 of file downloader.h.

◆ SPRS_TYPE_1

#define SPRS_TYPE_1   '1'

Definition at line 60 of file downloader.h.

◆ SPRS_TYPE_3

#define SPRS_TYPE_3   '3'

Definition at line 61 of file downloader.h.

◆ SPRS_TYPE_4

#define SPRS_TYPE_4   '4'

Definition at line 62 of file downloader.h.

◆ SPRS_TYPE_7

#define SPRS_TYPE_7   '7'

Definition at line 63 of file downloader.h.

Enumeration Type Documentation

◆ strain2_ampl_discretegain_t

Enumerator
ampl_gain256 
ampl_gain128 
ampl_gain96 
ampl_gain64 
ampl_gain48 
ampl_gain36 
ampl_gain24 
ampl_gain20 
ampl_gain16 
ampl_gain10 
ampl_gain08 
ampl_gain06 
ampl_gain04 

Definition at line 104 of file downloader.h.

Function Documentation

◆ drv_sleep()

void drv_sleep ( double  time)

Definition at line 26 of file downloader.cpp.