MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / dsl_rd_probe

Function dsl_rd_probe

libsigrok4DSL/hardware/DSL/dsl.c:989–1009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987}
988
989SR_PRIV int dsl_rd_probe(const struct sr_dev_inst *sdi, unsigned char *ctx, uint16_t addr, uint8_t len)
990{
991 struct sr_usb_dev_inst *usb;
992 struct libusb_device_handle *hdl;
993 struct ctl_rd_cmd rd_cmd;
994 int ret;
995
996 usb = sdi->conn;
997 hdl = usb->devhdl;
998
999 rd_cmd.header.dest = DSL_CTL_I2C_PROBE;
1000 rd_cmd.header.size = len;
1001 rd_cmd.header.offset = addr;
1002 rd_cmd.data = ctx;
1003 if ((ret = command_ctl_rd(hdl, rd_cmd)) != SR_OK) {
1004 sr_err("Sent DSL_CTL_NVM read command failed.");
1005 return SR_ERR;
1006 }
1007
1008 return SR_OK;
1009}
1010
1011SR_PRIV int dsl_fpga_arm(const struct sr_dev_inst *sdi)
1012{

Callers

nothing calls this directly

Calls 1

command_ctl_rdFunction · 0.85

Tested by

no test coverage detected