
GRMON3-UM
June 2019, Version 3.1.0
63
www.cobham.com/gaisler
data should be in little-endian format (note that the AMBA bus on the target system is big-endian). If the
len parameter is zero, no data should be read. The return value should be the number of words read.
int (*open) (char *device, int baudrate, int port);
Not used, provided only for backwards compatibility. This function is replaced by the function
init
.
int (*close) ();
Called when disconnecting.
int (*setbaud) (int baud, int pp);
Not used, provided only for backwards compatibility.
int (*init) (char* arg);
Called when initiating a connection to the target system. The parameter arg is set using the GRMON start-up
switch
-dbackarg
<arg>
. This allows to send arbitrary parameters to the DSU interface during start-up.
An example module is provided with the professional version of GRMON located at
<grmon3>/share/gr-
mon/src/dsu_user_backend
.