]> sigrok.org Git - libsigrok.git/blobdiff - hardware/asix-sigma/asix-sigma.h
ASIX SIGMA: Coding style fixes (via indent mostly).
[libsigrok.git] / hardware / asix-sigma / asix-sigma.h
index c4e31c6f877918a029bbce3935cc55f83f38b705..004c63340bf4cc5bfbfed43434f560d57efe68d3 100644 (file)
@@ -1,8 +1,28 @@
+/*
+ * This file is part of the sigrok project.
+ *
+ * Copyright (C) 2010 Håvard Espeland <gus@ping.uio.no>,
+ * Copyright (C) 2010 Martin Stensgård <mastensg@ping.uio.no>
+ * Copyright (C) 2010 Carl Henrik Lunde <chlunde@ping.uio.no>
+ *
+ * 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
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
 #ifndef ASIX_SIGMA_H
 #define ASIX_SIGMA_H
 
-enum sigma_write_register
-{
+enum sigma_write_register {
        WRITE_CLOCK_SELECT      = 0,
        WRITE_TRIGGER_SELECT0   = 1,
        WRITE_TRIGGER_SELECT1   = 2,
@@ -12,11 +32,10 @@ enum sigma_write_register
        WRITE_TRIGGER_OPTION    = 6,
        WRITE_PIN_VIEW          = 7,
 
-       WRITE_TEST              = 15
+       WRITE_TEST              = 15,
 };
 
-enum sigma_read_register
-{
+enum sigma_read_register {
        READ_ID                 = 0,
        READ_TRIGGER_POS_LOW    = 1,
        READ_TRIGGER_POS_HIGH   = 2,
@@ -31,7 +50,7 @@ enum sigma_read_register
        READ_BLOCK_LAST_TS_HIGH = 11,
        READ_PIN_VIEW           = 12,
 
-       READ_TEST               = 15
+       READ_TEST               = 15,
 };
 
 #define REG_ADDR_LOW           (0 << 4)
@@ -52,6 +71,4 @@ enum sigma_read_register
 
 #define CHUNK_SIZE             1024
 
-#endif /* ASIX_SIGMA_H */
-
-// vim:noexpandtab:ts=8 sts=8 sw=8
+#endif