X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Flink-mso19%2Flink-mso19.h;h=79078f5db6c198a6bbac33be6011a79a0d7b4bbb;hb=4bc5fd4568350e3d4025ea72158a8a611650a912;hp=7bf598e15ce3b5a9723cb1ce955c19cac80797c4;hpb=2566bd4884bf33518488504575ba62e99ef43a7b;p=libsigrok.git diff --git a/hardware/link-mso19/link-mso19.h b/hardware/link-mso19/link-mso19.h index 7bf598e1..79078f5d 100644 --- a/hardware/link-mso19/link-mso19.h +++ b/hardware/link-mso19/link-mso19.h @@ -7,10 +7,18 @@ * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ -#ifndef LINK_MSO19_H -#define LINK_MSO19_H +#ifndef SIGROK_LINK_MSO19_H +#define SIGROK_LINK_MSO19_H /* our private per-instance data */ struct mso { @@ -75,23 +83,23 @@ struct rate_map { }; static struct rate_map rate_map[] = { - { MHZ(200), 0x0205, 0 }, - { MHZ(100), 0x0105, 0 }, - { MHZ(50), 0x0005, 0 }, - { MHZ(20), 0x0303, 0 }, - { MHZ(10), 0x0308, 0 }, - { MHZ(5), 0x030c, 0 }, - { MHZ(2), 0x0330, 0 }, - { MHZ(1), 0x0362, 0 }, - { KHZ(500), 0x03c6, 0 }, - { KHZ(200), 0x07f2, 0 }, - { KHZ(100), 0x0fe6, 0 }, - { KHZ(50), 0x1fce, 0 }, - { KHZ(20), 0x4f86, 0 }, - { KHZ(10), 0x9f0e, 0 }, - { KHZ(5), 0x03c7, 0x20 }, - { KHZ(2), 0x07f3, 0x20 }, - { KHZ(1), 0x0fe7, 0x20 }, + { SR_MHZ(200), 0x0205, 0 }, + { SR_MHZ(100), 0x0105, 0 }, + { SR_MHZ(50), 0x0005, 0 }, + { SR_MHZ(20), 0x0303, 0 }, + { SR_MHZ(10), 0x0308, 0 }, + { SR_MHZ(5), 0x030c, 0 }, + { SR_MHZ(2), 0x0330, 0 }, + { SR_MHZ(1), 0x0362, 0 }, + { SR_KHZ(500), 0x03c6, 0 }, + { SR_KHZ(200), 0x07f2, 0 }, + { SR_KHZ(100), 0x0fe6, 0 }, + { SR_KHZ(50), 0x1fce, 0 }, + { SR_KHZ(20), 0x4f86, 0 }, + { SR_KHZ(10), 0x9f0e, 0 }, + { SR_KHZ(5), 0x03c7, 0x20 }, + { SR_KHZ(2), 0x07f3, 0x20 }, + { SR_KHZ(1), 0x0fe7, 0x20 }, { 500, 0x1fcf, 0x20 }, { 200, 0x4f87, 0x20 }, { 100, 0x9f0f, 0x20 }, @@ -106,5 +114,5 @@ uint16_t la_threshold_map[] = { 0x8eff, 0x8fff, }; -#endif +#endif