OpenOCD
pld.h File Reference
Include dependency graph for pld.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pld_device
 
struct  pld_driver
 

Macros

#define __PLD_DEVICE_COMMAND(name)    COMMAND_HELPER(name, struct pld_device *pld)
 
#define ERROR_PLD_DEVICE_INVALID   (-1000)
 
#define ERROR_PLD_FILE_LOAD_FAILED   (-1001)
 
#define PLD_DEVICE_COMMAND_HANDLER(name)    static __PLD_DEVICE_COMMAND(name)
 

Functions

struct pld_deviceget_pld_device_by_num (int num)
 
int pld_register_commands (struct command_context *cmd_ctx)
 

Macro Definition Documentation

◆ __PLD_DEVICE_COMMAND

#define __PLD_DEVICE_COMMAND (   name)     COMMAND_HELPER(name, struct pld_device *pld)

Definition at line 15 of file pld.h.

◆ ERROR_PLD_DEVICE_INVALID

#define ERROR_PLD_DEVICE_INVALID   (-1000)

Definition at line 38 of file pld.h.

◆ ERROR_PLD_FILE_LOAD_FAILED

#define ERROR_PLD_FILE_LOAD_FAILED   (-1001)

Definition at line 39 of file pld.h.

◆ PLD_DEVICE_COMMAND_HANDLER

#define PLD_DEVICE_COMMAND_HANDLER (   name)     static __PLD_DEVICE_COMMAND(name)

Definition at line 25 of file pld.h.

Function Documentation

◆ get_pld_device_by_num()

struct pld_device* get_pld_device_by_num ( int  num)

Definition at line 29 of file pld.c.

References pld_device::next, NULL, and pld_devices.

Referenced by COMMAND_HANDLER().

◆ pld_register_commands()

int pld_register_commands ( struct command_context cmd_ctx)

Definition at line 225 of file pld.c.

References NULL, pld_command_handler, and register_commands().

Referenced by setup_command_handler().