int fd, size, num_probes;
if ((fd = open(filename, O_RDONLY)) == -1)
int fd, size, num_probes;
if ((fd = open(filename, O_RDONLY)) == -1)
- packet.type = DF_LOGIC;
- packet.unitsize = (num_probes + 7) / 8;
- packet.payload = buffer;
+ packet.type = SR_DF_LOGIC;
+ packet.payload = &logic;
+ logic.unitsize = (num_probes + 7) / 8;
+ logic.data = buffer;