8 #ifndef OPENOCD_TRANSPORT_TRANSPORT_H 
    9 #define OPENOCD_TRANSPORT_TRANSPORT_H 
   19 #define TRANSPORT_JTAG                  BIT(0) 
   20 #define TRANSPORT_SWD                   BIT(1) 
   21 #define TRANSPORT_HLA_JTAG              BIT(2) 
   22 #define TRANSPORT_HLA_SWD               BIT(3) 
   23 #define TRANSPORT_DAPDIRECT_JTAG        BIT(4) 
   24 #define TRANSPORT_DAPDIRECT_SWD         BIT(5) 
   25 #define TRANSPORT_SWIM                  BIT(6) 
   28 #define TRANSPORT_VALID_MASK            \ 
   31      TRANSPORT_HLA_JTAG |               \ 
   33      TRANSPORT_DAPDIRECT_JTAG |         \ 
   34      TRANSPORT_DAPDIRECT_SWD |          \ 
  104     unsigned int transport_preferred_id);
 
Wrapper for transport lifecycle operations.
 
int(* select)(struct command_context *ctx)
When a transport is selected, this method registers its commands and activates the transport (e....
 
int(* override_target)(const char **targetname)
Optional.
 
int(* init)(struct command_context *ctx)
server startup uses this method to validate transport configuration.
 
unsigned int id
Each transport has a unique ID, used to select it from among the alternatives.
 
struct list_head lh
Transports are stored in a linked list.
 
bool transport_is_dapdirect_swd(void)
Returns true if the current debug session is using SWD as its transport.
 
bool transport_is_dapdirect_jtag(void)
Returns true if the current debug session is using JTAG as its transport.
 
bool transport_is_swim(void)
 
int allow_transports(struct command_context *ctx, unsigned int transport_ids, unsigned int transport_preferred_id)
Called by debug adapter drivers, or affiliated Tcl config scripts, to declare the set of transports s...
 
static bool transport_is_hla(void)
 
bool transport_is_jtag(void)
Returns true if the current debug session is using JTAG as its transport.
 
bool transport_is_swd(void)
Returns true if the current debug session is using SWD as its transport.
 
const char * get_current_transport_name(void)
 
int transport_register_commands(struct command_context *ctx)
 
const char * transport_name(unsigned int id)
 
struct transport * get_current_transport(void)
Returns the transport currently being used by this debug or programming session.
 
int transport_register(struct transport *new_transport)
Registers a transport.