From 80aa5f23d1225776a7db0fc6faa763bb5c141dcf Mon Sep 17 00:00:00 2001 From: Renato Caldas Date: Sat, 14 Jan 2012 12:46:27 +0000 Subject: [PATCH] link-mso19: Added struct definitions for the pattern generator config and the protocol trigger config. --- hardware/link-mso19/link-mso19.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/hardware/link-mso19/link-mso19.h b/hardware/link-mso19/link-mso19.h index 79078f5d..f88ee723 100644 --- a/hardware/link-mso19/link-mso19.h +++ b/hardware/link-mso19/link-mso19.h @@ -2,6 +2,7 @@ * This file is part of the sigrok project. * * Copyright (C) 2011 Daniel Ribeiro + * Copyright (C) 2012 Renato Caldas * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,6 +21,36 @@ #ifndef SIGROK_LINK_MSO19_H #define SIGROK_LINK_MSO19_H +/* Structure for the pattern generator state */ +struct mso_patgen { + /* Pattern generator clock config */ + uint16_t clock; + /* Buffer start address */ + uint16_t start; + /* Buffer end address */ + uint16_t end; + /* Pattern generator config */ + uint8_t config; + /* Samples buffer */ + uint8_t buffer[1024]; + /* Input/output configuration for the samples buffer (?)*/ + uint8_t io[1024]; + /* Number of loops for the pattern generator */ + uint8_t loops; + /* Bit enable mask for the I/O lines */ + uint8_t mask; +}; + +/* Data structure for the protocol trigger state */ +struct mso_prototrig { + /* Word match buffer */ + uint8_t word[4]; + /* Masks for the wordmatch buffer */ + uint8_t mask[4]; + /* SPI mode 0, 1, 2, 3. Set to 0 for I2C */ + uint8_t spimode; +}; + /* our private per-instance data */ struct mso { /* info */