1141cc406Sopenharmony_ci/* sane - Scanner Access Now Easy. 2141cc406Sopenharmony_ci 3141cc406Sopenharmony_ci Copyright (C) 2019 Povilas Kanapickas <povilas@radix.lt> 4141cc406Sopenharmony_ci 5141cc406Sopenharmony_ci This file is part of the SANE package. 6141cc406Sopenharmony_ci 7141cc406Sopenharmony_ci This program is free software; you can redistribute it and/or 8141cc406Sopenharmony_ci modify it under the terms of the GNU General Public License as 9141cc406Sopenharmony_ci published by the Free Software Foundation; either version 2 of the 10141cc406Sopenharmony_ci License, or (at your option) any later version. 11141cc406Sopenharmony_ci 12141cc406Sopenharmony_ci This program is distributed in the hope that it will be useful, but 13141cc406Sopenharmony_ci WITHOUT ANY WARRANTY; without even the implied warranty of 14141cc406Sopenharmony_ci MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15141cc406Sopenharmony_ci General Public License for more details. 16141cc406Sopenharmony_ci 17141cc406Sopenharmony_ci You should have received a copy of the GNU General Public License 18141cc406Sopenharmony_ci along with this program. If not, see <https://www.gnu.org/licenses/>. 19141cc406Sopenharmony_ci*/ 20141cc406Sopenharmony_ci 21141cc406Sopenharmony_ci#ifndef BACKEND_GENESYS_GL843_REGISTERS_H 22141cc406Sopenharmony_ci#define BACKEND_GENESYS_GL843_REGISTERS_H 23141cc406Sopenharmony_ci 24141cc406Sopenharmony_ci#include <cstdint> 25141cc406Sopenharmony_ci 26141cc406Sopenharmony_cinamespace genesys { 27141cc406Sopenharmony_cinamespace gl843 { 28141cc406Sopenharmony_ci 29141cc406Sopenharmony_ciusing RegAddr = std::uint16_t; 30141cc406Sopenharmony_ciusing RegMask = std::uint8_t; 31141cc406Sopenharmony_ciusing RegShift = unsigned; 32141cc406Sopenharmony_ci 33141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x01 = 0x01; 34141cc406Sopenharmony_cistatic constexpr RegMask REG_0x01_CISSET = 0x80; 35141cc406Sopenharmony_cistatic constexpr RegMask REG_0x01_DOGENB = 0x40; 36141cc406Sopenharmony_cistatic constexpr RegMask REG_0x01_DVDSET = 0x20; 37141cc406Sopenharmony_cistatic constexpr RegMask REG_0x01_STAGGER = 0x10; 38141cc406Sopenharmony_cistatic constexpr RegMask REG_0x01_COMPENB = 0x08; 39141cc406Sopenharmony_cistatic constexpr RegMask REG_0x01_TRUEGRAY = 0x04; 40141cc406Sopenharmony_cistatic constexpr RegMask REG_0x01_SHDAREA = 0x02; 41141cc406Sopenharmony_cistatic constexpr RegMask REG_0x01_SCAN = 0x01; 42141cc406Sopenharmony_ci 43141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x02 = 0x02; 44141cc406Sopenharmony_cistatic constexpr RegMask REG_0x02_NOTHOME = 0x80; 45141cc406Sopenharmony_cistatic constexpr RegMask REG_0x02_ACDCDIS = 0x40; 46141cc406Sopenharmony_cistatic constexpr RegMask REG_0x02_AGOHOME = 0x20; 47141cc406Sopenharmony_cistatic constexpr RegMask REG_0x02_MTRPWR = 0x10; 48141cc406Sopenharmony_cistatic constexpr RegMask REG_0x02_FASTFED = 0x08; 49141cc406Sopenharmony_cistatic constexpr RegMask REG_0x02_MTRREV = 0x04; 50141cc406Sopenharmony_cistatic constexpr RegMask REG_0x02_HOMENEG = 0x02; 51141cc406Sopenharmony_cistatic constexpr RegMask REG_0x02_LONGCURV = 0x01; 52141cc406Sopenharmony_ci 53141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x03 = 0x03; 54141cc406Sopenharmony_cistatic constexpr RegMask REG_0x03_LAMPDOG = 0x80; 55141cc406Sopenharmony_cistatic constexpr RegMask REG_0x03_AVEENB = 0x40; 56141cc406Sopenharmony_cistatic constexpr RegMask REG_0x03_XPASEL = 0x20; 57141cc406Sopenharmony_cistatic constexpr RegMask REG_0x03_LAMPPWR = 0x10; 58141cc406Sopenharmony_cistatic constexpr RegMask REG_0x03_LAMPTIM = 0x0f; 59141cc406Sopenharmony_ci 60141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x04 = 0x04; 61141cc406Sopenharmony_cistatic constexpr RegMask REG_0x04_LINEART = 0x80; 62141cc406Sopenharmony_cistatic constexpr RegMask REG_0x04_BITSET = 0x40; 63141cc406Sopenharmony_cistatic constexpr RegMask REG_0x04_AFEMOD = 0x30; 64141cc406Sopenharmony_cistatic constexpr RegMask REG_0x04_FILTER = 0x0c; 65141cc406Sopenharmony_cistatic constexpr RegMask REG_0x04_FESET = 0x03; 66141cc406Sopenharmony_ci 67141cc406Sopenharmony_cistatic constexpr RegShift REG_0x04S_AFEMOD = 4; 68141cc406Sopenharmony_ci 69141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x05 = 0x05; 70141cc406Sopenharmony_cistatic constexpr RegMask REG_0x05_DPIHW = 0xc0; 71141cc406Sopenharmony_cistatic constexpr RegMask REG_0x05_DPIHW_600 = 0x00; 72141cc406Sopenharmony_cistatic constexpr RegMask REG_0x05_DPIHW_1200 = 0x40; 73141cc406Sopenharmony_cistatic constexpr RegMask REG_0x05_DPIHW_2400 = 0x80; 74141cc406Sopenharmony_cistatic constexpr RegMask REG_0x05_DPIHW_4800 = 0xc0; 75141cc406Sopenharmony_cistatic constexpr RegMask REG_0x05_MTLLAMP = 0x30; 76141cc406Sopenharmony_cistatic constexpr RegMask REG_0x05_GMMENB = 0x08; 77141cc406Sopenharmony_cistatic constexpr RegMask REG_0x05_MTLBASE = 0x03; 78141cc406Sopenharmony_ci 79141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x06 = 0x06; 80141cc406Sopenharmony_cistatic constexpr RegMask REG_0x06_SCANMOD = 0xe0; 81141cc406Sopenharmony_cistatic constexpr RegShift REG_0x06S_SCANMOD = 5; 82141cc406Sopenharmony_cistatic constexpr RegMask REG_0x06_PWRBIT = 0x10; 83141cc406Sopenharmony_cistatic constexpr RegMask REG_0x06_GAIN4 = 0x08; 84141cc406Sopenharmony_cistatic constexpr RegMask REG_0x06_OPTEST = 0x07; 85141cc406Sopenharmony_ci 86141cc406Sopenharmony_cistatic constexpr RegMask REG_0x07_LAMPSIM = 0x80; 87141cc406Sopenharmony_ci 88141cc406Sopenharmony_cistatic constexpr RegMask REG_0x08_DECFLAG = 0x40; 89141cc406Sopenharmony_cistatic constexpr RegMask REG_0x08_GMMFFR = 0x20; 90141cc406Sopenharmony_cistatic constexpr RegMask REG_0x08_GMMFFG = 0x10; 91141cc406Sopenharmony_cistatic constexpr RegMask REG_0x08_GMMFFB = 0x08; 92141cc406Sopenharmony_cistatic constexpr RegMask REG_0x08_GMMZR = 0x04; 93141cc406Sopenharmony_cistatic constexpr RegMask REG_0x08_GMMZG = 0x02; 94141cc406Sopenharmony_cistatic constexpr RegMask REG_0x08_GMMZB = 0x01; 95141cc406Sopenharmony_ci 96141cc406Sopenharmony_cistatic constexpr RegMask REG_0x09_MCNTSET = 0xc0; 97141cc406Sopenharmony_cistatic constexpr RegMask REG_0x09_EVEN1ST = 0x20; 98141cc406Sopenharmony_cistatic constexpr RegMask REG_0x09_BLINE1ST = 0x10; 99141cc406Sopenharmony_cistatic constexpr RegMask REG_0x09_BACKSCAN = 0x08; 100141cc406Sopenharmony_cistatic constexpr RegMask REG_0x09_ENHANCE = 0x04; 101141cc406Sopenharmony_cistatic constexpr RegMask REG_0x09_SHORTTG = 0x02; 102141cc406Sopenharmony_cistatic constexpr RegMask REG_0x09_NWAIT = 0x01; 103141cc406Sopenharmony_ci 104141cc406Sopenharmony_cistatic constexpr RegShift REG_0x09S_MCNTSET = 6; 105141cc406Sopenharmony_cistatic constexpr RegShift REG_0x09S_CLKSET = 4; 106141cc406Sopenharmony_ci 107141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x0B = 0x0b; 108141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0B_DRAMSEL = 0x07; 109141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0B_ENBDRAM = 0x08; 110141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0B_RFHDIS = 0x10; 111141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0B_CLKSET = 0xe0; 112141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0B_24MHZ = 0x00; 113141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0B_30MHZ = 0x20; 114141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0B_40MHZ = 0x40; 115141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0B_48MHZ = 0x60; 116141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0B_60MHZ = 0x80; 117141cc406Sopenharmony_ci 118141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x0D = 0x0d; 119141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0D_JAMPCMD = 0x80; 120141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0D_DOCCMD = 0x40; 121141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0D_CCDCMD = 0x20; 122141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0D_FULLSTP = 0x10; 123141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0D_SEND = 0x08; 124141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0D_CLRMCNT = 0x04; 125141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0D_CLRDOCJM = 0x02; 126141cc406Sopenharmony_cistatic constexpr RegMask REG_0x0D_CLRLNCNT = 0x01; 127141cc406Sopenharmony_ci 128141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x0F = 0x0f; 129141cc406Sopenharmony_ci 130141cc406Sopenharmony_cistatic constexpr RegAddr REG_EXPR = 0x10; 131141cc406Sopenharmony_cistatic constexpr RegAddr REG_EXPG = 0x12; 132141cc406Sopenharmony_cistatic constexpr RegAddr REG_EXPB = 0x14; 133141cc406Sopenharmony_ci 134141cc406Sopenharmony_cistatic constexpr RegMask REG_0x16_CTRLHI = 0x80; 135141cc406Sopenharmony_cistatic constexpr RegMask REG_0x16_TOSHIBA = 0x40; 136141cc406Sopenharmony_cistatic constexpr RegMask REG_0x16_TGINV = 0x20; 137141cc406Sopenharmony_cistatic constexpr RegMask REG_0x16_CK1INV = 0x10; 138141cc406Sopenharmony_cistatic constexpr RegMask REG_0x16_CK2INV = 0x08; 139141cc406Sopenharmony_cistatic constexpr RegMask REG_0x16_CTRLINV = 0x04; 140141cc406Sopenharmony_cistatic constexpr RegMask REG_0x16_CKDIS = 0x02; 141141cc406Sopenharmony_cistatic constexpr RegMask REG_0x16_CTRLDIS = 0x01; 142141cc406Sopenharmony_ci 143141cc406Sopenharmony_cistatic constexpr RegMask REG_0x17_TGMODE = 0xc0; 144141cc406Sopenharmony_cistatic constexpr RegMask REG_0x17_TGMODE_NO_DUMMY = 0x00; 145141cc406Sopenharmony_cistatic constexpr RegMask REG_0x17_TGMODE_REF = 0x40; 146141cc406Sopenharmony_cistatic constexpr RegMask REG_0x17_TGMODE_XPA = 0x80; 147141cc406Sopenharmony_cistatic constexpr RegMask REG_0x17_TGW = 0x3f; 148141cc406Sopenharmony_cistatic constexpr RegShift REG_0x17S_TGW = 0; 149141cc406Sopenharmony_ci 150141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x18 = 0x18; 151141cc406Sopenharmony_cistatic constexpr RegMask REG_0x18_CNSET = 0x80; 152141cc406Sopenharmony_cistatic constexpr RegMask REG_0x18_DCKSEL = 0x60; 153141cc406Sopenharmony_cistatic constexpr RegMask REG_0x18_CKTOGGLE = 0x10; 154141cc406Sopenharmony_cistatic constexpr RegMask REG_0x18_CKDELAY = 0x0c; 155141cc406Sopenharmony_cistatic constexpr RegMask REG_0x18_CKSEL = 0x03; 156141cc406Sopenharmony_ci 157141cc406Sopenharmony_cistatic constexpr RegAddr REG_EXPDMY = 0x19; 158141cc406Sopenharmony_ci 159141cc406Sopenharmony_cistatic constexpr RegMask REG_0x1A_TGLSW2 = 0x80; 160141cc406Sopenharmony_cistatic constexpr RegMask REG_0x1A_TGLSW1 = 0x40; 161141cc406Sopenharmony_cistatic constexpr RegMask REG_0x1A_MANUAL3 = 0x02; 162141cc406Sopenharmony_cistatic constexpr RegMask REG_0x1A_MANUAL1 = 0x01; 163141cc406Sopenharmony_cistatic constexpr RegMask REG_0x1A_CK4INV = 0x08; 164141cc406Sopenharmony_cistatic constexpr RegMask REG_0x1A_CK3INV = 0x04; 165141cc406Sopenharmony_cistatic constexpr RegMask REG_0x1A_LINECLP = 0x02; 166141cc406Sopenharmony_ci 167141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x1C = 0x1c; 168141cc406Sopenharmony_cistatic constexpr RegMask REG_0x1C_TGTIME = 0x07; 169141cc406Sopenharmony_ci 170141cc406Sopenharmony_cistatic constexpr RegMask REG_0x1D_CK4LOW = 0x80; 171141cc406Sopenharmony_cistatic constexpr RegMask REG_0x1D_CK3LOW = 0x40; 172141cc406Sopenharmony_cistatic constexpr RegMask REG_0x1D_CK1LOW = 0x20; 173141cc406Sopenharmony_cistatic constexpr RegMask REG_0x1D_TGSHLD = 0x1f; 174141cc406Sopenharmony_cistatic constexpr RegShift REG_0x1DS_TGSHLD = 0; 175141cc406Sopenharmony_ci 176141cc406Sopenharmony_ci 177141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x1E = 0x1e; 178141cc406Sopenharmony_cistatic constexpr RegMask REG_0x1E_WDTIME = 0xf0; 179141cc406Sopenharmony_cistatic constexpr RegShift REG_0x1ES_WDTIME = 4; 180141cc406Sopenharmony_cistatic constexpr RegMask REG_0x1E_LINESEL = 0x0f; 181141cc406Sopenharmony_cistatic constexpr RegShift REG_0x1ES_LINESEL = 0; 182141cc406Sopenharmony_ci 183141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x21 = 0x21; 184141cc406Sopenharmony_cistatic constexpr RegAddr REG_STEPNO = 0x21; 185141cc406Sopenharmony_cistatic constexpr RegAddr REG_FWDSTEP = 0x22; 186141cc406Sopenharmony_cistatic constexpr RegAddr REG_BWDSTEP = 0x23; 187141cc406Sopenharmony_cistatic constexpr RegAddr REG_FASTNO = 0x24; 188141cc406Sopenharmony_cistatic constexpr RegAddr REG_LINCNT = 0x25; 189141cc406Sopenharmony_ci 190141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x29 = 0x29; 191141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x2A = 0x2a; 192141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x2B = 0x2b; 193141cc406Sopenharmony_cistatic constexpr RegAddr REG_DPISET = 0x2c; 194141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x2E = 0x2e; 195141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x2F = 0x2f; 196141cc406Sopenharmony_ci 197141cc406Sopenharmony_cistatic constexpr RegAddr REG_STRPIXEL = 0x30; 198141cc406Sopenharmony_cistatic constexpr RegAddr REG_ENDPIXEL = 0x32; 199141cc406Sopenharmony_cistatic constexpr RegAddr REG_DUMMY = 0x34; 200141cc406Sopenharmony_cistatic constexpr RegAddr REG_MAXWD = 0x35; 201141cc406Sopenharmony_cistatic constexpr RegAddr REG_LPERIOD = 0x38; 202141cc406Sopenharmony_cistatic constexpr RegAddr REG_FEEDL = 0x3d; 203141cc406Sopenharmony_ci 204141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x40 = 0x40; 205141cc406Sopenharmony_cistatic constexpr RegMask REG_0x40_DOCSNR = 0x80; 206141cc406Sopenharmony_cistatic constexpr RegMask REG_0x40_ADFSNR = 0x40; 207141cc406Sopenharmony_cistatic constexpr RegMask REG_0x40_COVERSNR = 0x20; 208141cc406Sopenharmony_cistatic constexpr RegMask REG_0x40_CHKVER = 0x10; 209141cc406Sopenharmony_cistatic constexpr RegMask REG_0x40_DOCJAM = 0x08; 210141cc406Sopenharmony_cistatic constexpr RegMask REG_0x40_HISPDFLG = 0x04; 211141cc406Sopenharmony_cistatic constexpr RegMask REG_0x40_MOTMFLG = 0x02; 212141cc406Sopenharmony_cistatic constexpr RegMask REG_0x40_DATAENB = 0x01; 213141cc406Sopenharmony_ci 214141cc406Sopenharmony_cistatic constexpr RegMask REG_0x41_PWRBIT = 0x80; 215141cc406Sopenharmony_cistatic constexpr RegMask REG_0x41_BUFEMPTY = 0x40; 216141cc406Sopenharmony_cistatic constexpr RegMask REG_0x41_FEEDFSH = 0x20; 217141cc406Sopenharmony_cistatic constexpr RegMask REG_0x41_SCANFSH = 0x10; 218141cc406Sopenharmony_cistatic constexpr RegMask REG_0x41_HOMESNR = 0x08; 219141cc406Sopenharmony_cistatic constexpr RegMask REG_0x41_LAMPSTS = 0x04; 220141cc406Sopenharmony_cistatic constexpr RegMask REG_0x41_FEBUSY = 0x02; 221141cc406Sopenharmony_cistatic constexpr RegMask REG_0x41_MOTORENB = 0x01; 222141cc406Sopenharmony_ci 223141cc406Sopenharmony_cistatic constexpr RegMask REG_0x58_VSMP = 0xf8; 224141cc406Sopenharmony_cistatic constexpr RegShift REG_0x58S_VSMP = 3; 225141cc406Sopenharmony_cistatic constexpr RegMask REG_0x58_VSMPW = 0x07; 226141cc406Sopenharmony_cistatic constexpr RegShift REG_0x58S_VSMPW = 0; 227141cc406Sopenharmony_ci 228141cc406Sopenharmony_cistatic constexpr RegMask REG_0x59_BSMP = 0xf8; 229141cc406Sopenharmony_cistatic constexpr RegShift REG_0x59S_BSMP = 3; 230141cc406Sopenharmony_cistatic constexpr RegMask REG_0x59_BSMPW = 0x07; 231141cc406Sopenharmony_cistatic constexpr RegShift REG_0x59S_BSMPW = 0; 232141cc406Sopenharmony_ci 233141cc406Sopenharmony_cistatic constexpr RegMask REG_0x5A_ADCLKINV = 0x80; 234141cc406Sopenharmony_cistatic constexpr RegMask REG_0x5A_RLCSEL = 0x40; 235141cc406Sopenharmony_cistatic constexpr RegMask REG_0x5A_CDSREF = 0x30; 236141cc406Sopenharmony_cistatic constexpr RegShift REG_0x5AS_CDSREF = 4; 237141cc406Sopenharmony_cistatic constexpr RegMask REG_0x5A_RLC = 0x0f; 238141cc406Sopenharmony_cistatic constexpr RegShift REG_0x5AS_RLC = 0; 239141cc406Sopenharmony_ci 240141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x5E = 0x5e; 241141cc406Sopenharmony_cistatic constexpr RegMask REG_0x5E_DECSEL = 0xe0; 242141cc406Sopenharmony_cistatic constexpr RegShift REG_0x5ES_DECSEL = 5; 243141cc406Sopenharmony_cistatic constexpr RegMask REG_0x5E_STOPTIM = 0x1f; 244141cc406Sopenharmony_cistatic constexpr RegShift REG_0x5ES_STOPTIM = 0; 245141cc406Sopenharmony_ci 246141cc406Sopenharmony_cistatic constexpr RegAddr REG_FMOVDEC = 0x5f; 247141cc406Sopenharmony_ci 248141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x60 = 0x60; 249141cc406Sopenharmony_cistatic constexpr RegMask REG_0x60_Z1MOD = 0x1f; 250141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x61 = 0x61; 251141cc406Sopenharmony_cistatic constexpr RegMask REG_0x61_Z1MOD = 0xff; 252141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x62 = 0x62; 253141cc406Sopenharmony_cistatic constexpr RegMask REG_0x62_Z1MOD = 0xff; 254141cc406Sopenharmony_ci 255141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x63 = 0x63; 256141cc406Sopenharmony_cistatic constexpr RegMask REG_0x63_Z2MOD = 0x1f; 257141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x64 = 0x64; 258141cc406Sopenharmony_cistatic constexpr RegMask REG_0x64_Z2MOD = 0xff; 259141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x65 = 0x65; 260141cc406Sopenharmony_cistatic constexpr RegMask REG_0x65_Z2MOD = 0xff; 261141cc406Sopenharmony_ci 262141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x67 = 0x67; 263141cc406Sopenharmony_ci 264141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x68 = 0x68; 265141cc406Sopenharmony_ci 266141cc406Sopenharmony_cistatic constexpr RegShift REG_0x67S_STEPSEL = 6; 267141cc406Sopenharmony_cistatic constexpr RegMask REG_0x67_STEPSEL = 0xc0; 268141cc406Sopenharmony_cistatic constexpr RegMask REG_0x67_FULLSTEP = 0x00; 269141cc406Sopenharmony_cistatic constexpr RegMask REG_0x67_HALFSTEP = 0x20; 270141cc406Sopenharmony_cistatic constexpr RegMask REG_0x67_EIGHTHSTEP = 0x60; 271141cc406Sopenharmony_cistatic constexpr RegMask REG_0x67_16THSTEP = 0x80; 272141cc406Sopenharmony_ci 273141cc406Sopenharmony_cistatic constexpr RegShift REG_0x68S_FSTPSEL = 6; 274141cc406Sopenharmony_cistatic constexpr RegMask REG_0x68_FSTPSEL = 0xc0; 275141cc406Sopenharmony_cistatic constexpr RegMask REG_0x68_FULLSTEP = 0x00; 276141cc406Sopenharmony_cistatic constexpr RegMask REG_0x68_HALFSTEP = 0x20; 277141cc406Sopenharmony_cistatic constexpr RegMask REG_0x68_EIGHTHSTEP = 0x60; 278141cc406Sopenharmony_cistatic constexpr RegMask REG_0x68_16THSTEP = 0x80; 279141cc406Sopenharmony_ci 280141cc406Sopenharmony_cistatic constexpr RegAddr REG_FSHDEC = 0x69; 281141cc406Sopenharmony_cistatic constexpr RegAddr REG_FMOVNO = 0x6a; 282141cc406Sopenharmony_ci 283141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x6B = 0x6b; 284141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6B_MULTFILM = 0x80; 285141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6B_GPOM13 = 0x40; 286141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6B_GPOM12 = 0x20; 287141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6B_GPOM11 = 0x10; 288141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6B_GPOCK4 = 0x08; 289141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6B_GPOCP = 0x04; 290141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6B_GPOLEDB = 0x02; 291141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6B_GPOADF = 0x01; 292141cc406Sopenharmony_ci 293141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x6C = 0x6c; 294141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6C_GPIO16 = 0x80; 295141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6C_GPIO15 = 0x40; 296141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6C_GPIO14 = 0x20; 297141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6C_GPIO13 = 0x10; 298141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6C_GPIO12 = 0x08; 299141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6C_GPIO11 = 0x04; 300141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6C_GPIO10 = 0x02; 301141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6C_GPIO9 = 0x01; 302141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6C_GPIOH = 0xff; 303141cc406Sopenharmony_cistatic constexpr RegMask REG_0x6C_GPIOL = 0xff; 304141cc406Sopenharmony_ci 305141cc406Sopenharmony_cistatic constexpr RegAddr REG_Z1MOD = 0x60; 306141cc406Sopenharmony_cistatic constexpr RegAddr REG_Z2MOD = 0x63; 307141cc406Sopenharmony_ci 308141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x6D = 0x6d; 309141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x6E = 0x6e; 310141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x6F = 0x6f; 311141cc406Sopenharmony_ci 312141cc406Sopenharmony_cistatic constexpr RegAddr REG_CK1MAP = 0x74; 313141cc406Sopenharmony_cistatic constexpr RegAddr REG_CK3MAP = 0x77; 314141cc406Sopenharmony_cistatic constexpr RegAddr REG_CK4MAP = 0x7a; 315141cc406Sopenharmony_ci 316141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x7E = 0x7e; 317141cc406Sopenharmony_ci 318141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x80 = 0x80; 319141cc406Sopenharmony_cistatic constexpr RegMask REG_0x80_TABLE1_NORMAL = 0x03; 320141cc406Sopenharmony_cistatic constexpr RegShift REG_0x80S_TABLE1_NORMAL = 0; 321141cc406Sopenharmony_cistatic constexpr RegMask REG_0x80_TABLE2_BACK = 0x0c; 322141cc406Sopenharmony_cistatic constexpr RegShift REG_0x80S_TABLE2_BACK = 2; 323141cc406Sopenharmony_cistatic constexpr RegMask REG_0x80_TABLE4_FAST = 0x30; 324141cc406Sopenharmony_cistatic constexpr RegShift REG_0x80S_TABLE4_FAST = 4; 325141cc406Sopenharmony_cistatic constexpr RegMask REG_0x80_TABLE5_GO_HOME = 0xc0; 326141cc406Sopenharmony_cistatic constexpr RegShift REG_0x80S_TABLE5_GO_HOME = 6; 327141cc406Sopenharmony_ci 328141cc406Sopenharmony_cistatic constexpr RegAddr REG_0x9D = 0x9d; 329141cc406Sopenharmony_cistatic constexpr RegShift REG_0x9DS_STEPTIM = 2; 330141cc406Sopenharmony_ci 331141cc406Sopenharmony_cistatic constexpr RegMask REG_0x87_LEDADD = 0x04; 332141cc406Sopenharmony_ci 333141cc406Sopenharmony_cistatic constexpr RegAddr REG_0xA6 = 0xa6; 334141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA6_GPIO24 = 0x80; 335141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA6_GPIO23 = 0x40; 336141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA6_GPIO22 = 0x20; 337141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA6_GPIO21 = 0x10; 338141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA6_GPIO20 = 0x08; 339141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA6_GPIO19 = 0x04; 340141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA6_GPIO18 = 0x02; 341141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA6_GPIO17 = 0x01; 342141cc406Sopenharmony_cistatic constexpr RegAddr REG_0xA7 = 0xa7; 343141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA7_GPOE24 = 0x80; 344141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA7_GPOE23 = 0x40; 345141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA7_GPOE22 = 0x20; 346141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA7_GPOE21 = 0x10; 347141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA7_GPOE20 = 0x08; 348141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA7_GPOE19 = 0x04; 349141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA7_GPOE18 = 0x02; 350141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA7_GPOE17 = 0x01; 351141cc406Sopenharmony_cistatic constexpr RegAddr REG_0xA8 = 0xa8; 352141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA8_GPOE27 = 0x20; 353141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA8_GPOE26 = 0x10; 354141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA8_GPOE25 = 0x08; 355141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA8_GPO27 = 0x04; 356141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA8_GPO26 = 0x02; 357141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA8_GPO25 = 0x01; 358141cc406Sopenharmony_cistatic constexpr RegAddr REG_0xA9 = 0xa9; 359141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA9_GPO33 = 0x20; 360141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA9_GPO32 = 0x10; 361141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA9_GPO31 = 0x08; 362141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA9_GPO30 = 0x04; 363141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA9_GPO29 = 0x02; 364141cc406Sopenharmony_cistatic constexpr RegMask REG_0xA9_GPO28 = 0x01; 365141cc406Sopenharmony_ci 366141cc406Sopenharmony_ci} // namespace gl843 367141cc406Sopenharmony_ci} // namespace genesys 368141cc406Sopenharmony_ci 369141cc406Sopenharmony_ci#endif // BACKEND_GENESYS_GL843_REGISTERS_H 370