1 // *********************************************************************
    2 //   IQRF HWPIDs                                                       *
    3 // *********************************************************************
    4 // Copyright (c) MICRORISC s.r.o.
    5 //
    6 // File:    $RCSfile: IQRF_HWPID.h,v $
    7 // Version: $Revision: 1.131 $
    8 // Date:    $Date: 2022/02/25 09:41:26 $
    9 //
   10 // Revision history:
   11 //   2022/02/24  Release for DPA 4.17
   12 //   2021/08/20  Release for DPA 4.16
   13 //   2020/09/03  Release for DPA 4.15
   14 //   2020/04/03  Release for DPA 4.14
   15 //   2020/02/27  Release for DPA 4.13
   16 //   2020/01/09  Release for DPA 4.12
   17 //   2019/12/11  Release for DPA 4.11
   18 //   2019/10/09  Release for DPA 4.10
   19 //   2019/06/12  Release for DPA 4.03
   20 //   2019/06/03  Release for DPA 4.02
   21 //   2019/03/07  Release for DPA 4.01
   22 //   2019/01/20  Release for DPA 4.00
   23 //   2018/10/25  Release for DPA 3.03
   24 //   2017/11/16  Release for DPA 3.02
   25 //   2017/08/14  Release for DPA 3.01
   26 //
   27 // *********************************************************************
   28 
   29 // Online DPA documentation https://doc.iqrf.org/DpaTechGuide/
   30 // IQRF Standards documentation https://doc.iqrf.org/
   31 
   32 #ifndef _IQRFSTD_HWPID_
   33 #define _IQRFSTD_HWPID_
   34 
   35 //# Class #1 #################################################################################
   36 // Manufacturer: bits:0-9, bit.0=0, bit.3-9=[0000000] (even numbers, but not 0x000)
   37 // Product: bits:10-15 (6 bits)
   38 //############################################################################################
   39 #ifdef __CC5X__
   40 #define HWPID_CLS1(prod,man) \
   41 #if prod < 0 || prod > 0x3F \
   42 #error "HWPID_CLS1: invalid product number" \
   43 #endif \
   44 #if man <= 0 || man > 0x007 || ( man & 1 ) != 0 \
   45 #error "HWPID_CLS1: invalid manufacturer number" \
   46 #endif \
   47 ( (uns16)(man) | ( (uns16)(prod) << 10 ) )
   48 #else
   49 #define HWPID_CLS1(prod,man) ( (uns16)(man) | ( (uns16)(prod) << 10 ) )
   50 #endif
   51 
   52 // -------------------------------------------------------------------------------------------
   53 // IQRF Tech s.r.o.
   54 #define HWPID_IQRF_TECH1      0x002
   55 
   56 // DDC-SE-01 sensor example
   57 // (0002_DDC-SE01.c)
   58 #define HWPID_IQRF_TECH__DEMO_DDC_SE01                HWPID_CLS1( 0x00, HWPID_IQRF_TECH1 ) // 0x0002
   59 
   60 // DDC-SE-01 + DDC-RE-01 sensor example
   61 // (0402_DDC-SE+RE.c)
   62 #define HWPID_IQRF_TECH__DEMO_DDC_SE01_RE01           HWPID_CLS1( 0x01, HWPID_IQRF_TECH1 ) // 0x0402
   63 
   64 // TR temperature sensor example
   65 // (0802_TrThermometer.c)
   66 #define HWPID_IQRF_TECH__DEMO_TR_THERMOMETER          HWPID_CLS1( 0x02, HWPID_IQRF_TECH1 ) // 0x0802
   67 
   68 // Binary output example using LEDs and DDC-RE-01
   69 // (0C02_BinaryOutput-Template.c)
   70 #define HWPID_IQRF_TECH__DEMO_BINARY_OUTPUT           HWPID_CLS1( 0x03, HWPID_IQRF_TECH1 ) // 0x0C02
   71 
   72 // Light example
   73 // (1002_Light-Template.c)
   74 #define HWPID_IQRF_TECH__DEMO_LIGHT                   HWPID_CLS1( 0x04, HWPID_IQRF_TECH1 ) // 0x1002
   75 
   76 // Sensor template
   77 // (1402_Sensor-Template.c)
   78 #define HWPID_IQRF_TECH__DEMO_SENSOR_TEMPLATE         HWPID_CLS1( 0x05, HWPID_IQRF_TECH1 ) // 0x1402
   79 
   80 // ToDo Description DK-SW2-01
   81 // ToDo (?.c)
   82 #define HWPID_IQRF_TECH__DK_SW2_01                    HWPID_CLS1( 0x06, HWPID_IQRF_TECH1 ) // 0x1802
   83 
   84 // ToDo Description IQD-SW1-01
   85 // ToDo (?.c)
   86 #define HWPID_IQRF_TECH__IQD_SW1_01                   HWPID_CLS1( 0x07, HWPID_IQRF_TECH1 ) // 0x1C02
   87 
   88 // ToDo Description IQD-SW2-01
   89 // ToDo (?.c)
   90 #define HWPID_IQRF_TECH__IQD_SW2_01                   HWPID_CLS1( 0x08, HWPID_IQRF_TECH1 ) // 0x2002
   91 
   92 // ToDo Description IQD-RC3-01
   93 // ToDo (?.c)
   94 #define HWPID_IQRF_TECH__IQD_RC3_01                   HWPID_CLS1( 0x09, HWPID_IQRF_TECH1 ) // 0x2402
   95 
   96 // ToDo Description IQD-SM1
   97 // ToDo (2802_IQD-SM1.c)
   98 #define HWPID_IQRF_TECH__IQD_SM1                      HWPID_CLS1( 0x0A, HWPID_IQRF_TECH1 ) // 0x2802
   99 
  100 // ToDo Description IQD-RC4-01
  101 // ToDo (?.c)
  102 #define HWPID_IQRF_TECH__RC4_01                       HWPID_CLS1( 0x0B, HWPID_IQRF_TECH1 ) // 0x2C02
  103 
  104 // ToDo Description IQD-RC4-02
  105 // ToDo (?.c)
  106 #define HWPID_IQRF_TECH__RC4_02                       HWPID_CLS1( 0x0C, HWPID_IQRF_TECH1 ) // 0x3002
  107 
  108 // ToDo Description IQD-REP-01
  109 // ToDo (?.c)
  110 #define HWPID_IQRF_TECH__REP_01                       HWPID_CLS1( 0x0D, HWPID_IQRF_TECH1 ) // 0x3402
  111 
  112 // ToDo Description IQD-SW1-02
  113 // ToDo (?.c)
  114 #define HWPID_IQRF_TECH__IQD_SW1_02                   HWPID_CLS1( 0x0F, HWPID_IQRF_TECH1 ) // 0x3C02
  115 
  116 // DDC-SE-01 + DDC-RE-01 sensor + binary output example - LP version
  117 // (4402_DDC-SE+RE_LP.c)
  118 #define HWPID_IQRF_TECH__DEMO_DDC_SE01_RE01_LP        HWPID_CLS1( 0x11, HWPID_IQRF_TECH1 ) // 0x4402
  119 
  120 // DDC-RE-01 binary output example - LP version
  121 // (4802_DDC-RE_LP.c)
  122 #define HWPID_IQRF_TECH__DEMO_DDC_RE01_LP             HWPID_CLS1( 0x12, HWPID_IQRF_TECH1 ) // 0x4802
  123 
  124 // DDC-SE-01 sensor example - LP version
  125 // (4C02_DDC-SE_LP.c)
  126 #define HWPID_IQRF_TECH__DEMO_DDC_SE01_LP             HWPID_CLS1( 0x13, HWPID_IQRF_TECH1 ) // 0x4C02
  127 
  128 //#define   ?             HWPID_CLS1( 0x14, HWPID_IQRF_TECH1 ) // 0x5002
  129 
  130 //#define   ?             HWPID_CLS1( 0x15, HWPID_IQRF_TECH1 ) // 0x5402
  131 
  132 // DALI_TEMPLATE
  133 // (5802_DALI_TEMPLATE.c)
  134 #define HWPID_IQRF_TECH__DALI_TEMPLATE                HWPID_CLS1( 0x16, HWPID_IQRF_TECH1 ) // 0x5802
  135 
  136 // IQD-REP-03
  137 // (5C02_P-IQD-REP-03.c)
  138 #define HWPID_IQRF_TECH__P_IQD_REP_03                 HWPID_CLS1( 0x17, HWPID_IQRF_TECH1 ) // 0x5C02
  139 
  140 // IQD_REP_02_W2D
  141 // (6002_IQD_REP_02_W2D.c + IQD_REP_02_x1D)
  142 #define HWPID_IQRF_TECH__IQD_REP_02_W2D               HWPID_CLS1( 0x18, HWPID_IQRF_TECH1 ) // 0x6002
  143 
  144 // IQD_REP_02_S2D
  145 // (6402_IQD_REP_02_S2D.c + IQD_REP_02_x1D)
  146 #define HWPID_IQRF_TECH__IQD_REP_02_S2D               HWPID_CLS1( 0x19, HWPID_IQRF_TECH1 ) // 0x6402
  147 
  148 // -------------------------------------------------------------------------------------------
  149 // MICRORISC s.r.o.
  150 #define HWPID_MICRORISC   0x004
  151 
  152 // IQD_REP_02
  153 // (?.c)
  154 #define HWPID_MICRORISC__IQD_REP_02               HWPID_CLS1( 0x00, HWPID_MICRORISC )     // 0x0004
  155 
  156 // Radar Counter
  157 // (0404_RadarCounter.c)
  158 #define HWPID_MICRORISC__RADAR_COUNTER            HWPID_CLS1( 0x01, HWPID_MICRORISC )     // 0x0404
  159 
  160 // IQD-DALI-01
  161 // (0804_IQD-DALI-01.c)
  162 #define HWPID_MICRORISC__IQD_DALI_01              HWPID_CLS1( 0x02, HWPID_MICRORISC )     // 0x0804
  163 
  164 // P-IQD-TEMP-01
  165 // (0C04_P-IQD-TEMP-01.c)
  166 #define HWPID_MICRORISC__P_IQD_TEMP_01            HWPID_CLS1( 0x03, HWPID_MICRORISC )     // 0x0C04
  167 
  168 // IQD-TEMP-02
  169 // (1004_IQD-TEMP-02.c)
  170 #define HWPID_MICRORISC__IQD_TEMP_02              HWPID_CLS1( 0x04, HWPID_MICRORISC )     // 0x1004
  171 
  172 // IQD-CNT-01
  173 // (1404_IQD-CNT-01.c)
  174 #define HWPID_MICRORISC__IQD_CNT_01               HWPID_CLS1( 0x05, HWPID_MICRORISC )     // 0x1404
  175 
  176 // IQD-CNT-02
  177 // (1804_IQD-CNT-02.c)
  178 #define HWPID_MICRORISC__IQD_CNT_02               HWPID_CLS1( 0x06, HWPID_MICRORISC )     // 0x1804
  179 
  180 // IQD-CNT1-01-T-E-01
  181 // (1C04_IQD-CNT1-01-T-E-01.c)
  182 #define HWPID_MICRORISC_IQD_CNT1_01_T_E_01        HWPID_CLS1( 0x07, HWPID_MICRORISC )     // 0x1C04
  183 
  184 // IQD-CNT1-01-TH-I-01
  185 // (2004_IQD-CNT1-01-TH-I-01.c)
  186 #define HWPID_MICRORISC_IQD_CNT1_01_TH_I_01       HWPID_CLS1( 0x08, HWPID_MICRORISC )     // 0x2004
  187 
  188 // IQD-CNT1-01-TH-F-01
  189 // (2404_IQD-CNT1-01-TH-F-01.c)
  190 #define HWPID_MICRORISC_IQD_CNT1_01_TH_F_01       HWPID_CLS1( 0x09, HWPID_MICRORISC )     // 0x2404
  191 
  192 // IQD-REP-02-W1D
  193 // (2804_IQD-REP-02-W1D.c)
  194 #define HWPID_MICRORISC_IQD_REP_02_W1D            HWPID_CLS1( 0x0A, HWPID_MICRORISC )     // 0x2804
  195 
  196 // IQD-REP-02-S1D
  197 // (2C04_IQD-REP-02-S1D.c)
  198 #define HWPID_MICRORISC_IQD_REP_02_S1D            HWPID_CLS1( 0x0B, HWPID_MICRORISC )     // 0x2C04
  199 
  200 // KON-OPI-02
  201 // (3004_KON-OPI-02.c)
  202 #define HWPID_MICRORISC_KON_OPI_02                HWPID_CLS1( 0x0C, HWPID_MICRORISC )     // 0x3004
  203 
  204 // IQD-SW1-06
  205 // (3404_IQD-SW1-06.c)
  206 #define HWPID_MICRORISC_IQD_SW1_06                HWPID_CLS1( 0x0D, HWPID_MICRORISC )     // 0x3404
  207 
  208 // IQD-SE01-xxR
  209 // (3804_IQD-SE01-xxR.c)
  210 #define HWPID_MICRORISC_IQD_SE01_xxR              HWPID_CLS1( 0x0E, HWPID_MICRORISC )     // 0x3804
  211 
  212 // IQD-SE01-xxRT
  213 // (3C04_IQD-SE01-xxRT.c)
  214 #define HWPID_MICRORISC_IQD_SE01_xxRT             HWPID_CLS1( 0x0F, HWPID_MICRORISC )     // 0x3C04
  215 
  216 // IQD-SE01-xxVT
  217 // (4004_IQD-SE01-xxVT.c)
  218 #define HWPID_MICRORISC_IQD_SE01_xxVT             HWPID_CLS1( 0x10, HWPID_MICRORISC )     // 0x4004
  219 
  220 // IQD-SE01-xxLT
  221 // (4404_IQD-SE01-xxLT.c)
  222 #define HWPID_MICRORISC_IQD_SE01_xxLT             HWPID_CLS1( 0x11, HWPID_MICRORISC )     // 0x4404
  223 
  224 // IQD-SE03-xxFL
  225 // (4804_IQD-SE03-xxFL.c)
  226 #define HWPID_MICRORISC_IQD_SE03_05FL             HWPID_CLS1( 0x12, HWPID_MICRORISC )     // 0x4804
  227 
  228 // IQD-SE03-xxLUX
  229 // (4C04_IQD-SE03-xxLUX.c)
  230 #define HWPID_MICRORISC_IQD_SE03_06LUX            HWPID_CLS1( 0x13, HWPID_MICRORISC )     // 0x4C04
  231 
  232 // IQD-CNT2-02, Sensor teploty a vlhkosti, rozšířená přesnost, krabička Italtronic
  233 // (5004_IQD_CNT2_02_TH.c)
  234 #define HWPID_MICRORISC_IQD_CNT2_02_TH            HWPID_CLS1( 0x14, HWPID_MICRORISC )     // 0x5004
  235 
  236 // IQD-SE01-xxI, Intensita osvětlení pro detekci polohy žaluzií (v krabičce IQD-SM1)
  237 // (5404_IQD_SE01_xxI.c)
  238 #define HWPID_MICRORISC_IQD_SE01_xxI              HWPID_CLS1( 0x15, HWPID_MICRORISC )     // 0x5404
  239 
  240 // IQD-SE03-04IR, Detekce polohy žaluzií, reflexní IR čidlo
  241 #define HWPID_MICRORISC_IQD_SE03_04IR             HWPID_CLS1( 0x16, HWPID_MICRORISC )     // 0x5804
  242 
  243 // IQD-SE04-01PIR, Detekce pohybu, čidlo PIR
  244 // (5C04_IQD-SE04-01PIR.c)
  245 #define HWPID_MICRORISC_IQD_SE04_01PIR            HWPID_CLS1( 0x17, HWPID_MICRORISC )     // 0x5C04
  246 
  247 // CHOR-IQ, Kouřový sensor
  248 #define HWPID_MICRORISC_CHOR_IQ                   HWPID_CLS1( 0x18, HWPID_MICRORISC )     // 0x6004
  249 
  250 // IQD-CNT-01-TH
  251 // (6404_IQD-CNT-01-TH.c)
  252 #define HWPID_MICRORISC__IQD_CNT_01_TH            HWPID_CLS1( 0x19, HWPID_MICRORISC )     // 0x6404
  253 
  254 // P-IQD-SM2-T.c
  255 // (6804_P_IQD_SM2_T.c)
  256 #define HWPID_MICRORISC__P_IQD_SM2_T              HWPID_CLS1( 0x1A, HWPID_MICRORISC )     // 0x6804
  257 
  258 // IQD-REP-04.c
  259 // (6C04_IQD_REP_04.c)
  260 #define HWPID_MICRORISC__IQD_REP_04               HWPID_CLS1( 0x1B, HWPID_MICRORISC )     // 0x6C04
  261 
  262 // IQD-REP-02-S1D-T
  263 // (7004_IQD-REP-02-S1D-T.c)
  264 #define HWPID_MICRORISC_IQD_REP_02_S1D_T          HWPID_CLS1( 0x1C, HWPID_MICRORISC )     // 0x7004
  265 
  266 // IQD-UPS01
  267 // (7404_IQD_UPS01.c)
  268 #define HWPID_MICRORISC_IQD_UPS01                 HWPID_CLS1( 0x1D, HWPID_MICRORISC )     // 0x7404
  269 
  270 // IQD-LCZH-01 (formerly IQD-SL02)
  271 // (7804_IQD-LCZH-01.c)
  272 #define HWPID_MICRORISC_IQD_LCZH_01               HWPID_CLS1( 0x1E, HWPID_MICRORISC )     // 0x7804
  273 
  274 // IQD-LCNE-01 (formerly IQD-SL01)
  275 // (7C04_IQD-LCNE-01.c)
  276 #define HWPID_MICRORISC_IQD_LCNE_01               HWPID_CLS1( 0x1F, HWPID_MICRORISC )     // 0x7C04
  277 
  278 // IQD-SE01-14RT
  279 // (8004_IQD-SE01-14RT.c)
  280 #define HWPID_MICRORISC_IQD_SE01_14RT             HWPID_CLS1( 0x20, HWPID_MICRORISC )     // 0x8004
  281 
  282 // IQD-SE02-0xRTH
  283 // (8404_IQD-SE02-0xRTH.c)
  284 #define HWPID_MICRORISC_IQD_SE02_0xRTH            HWPID_CLS1( 0x21, HWPID_MICRORISC )     // 0x8404
  285 
  286 // IQD_SW10_01A
  287 // (8804_IQD_SW10_xxA.c)
  288 #define HWPID_MICRORISC_IQD_SW10_xxA              HWPID_CLS1( 0x22, HWPID_MICRORISC )     // 0x8804
  289 
  290 // IQD_SW10_02C
  291 // (8C04_IQD_SW10_xxC.c)
  292 #define HWPID_MICRORISC_IQD_SW10_xxC              HWPID_CLS1( 0x23, HWPID_MICRORISC )     // 0x8C04
  293 
  294 //# Class #2 #################################################################################
  295 // Manufacturer: bits:0-11, bit.0=1, bit.5-11=[0000000] (odd numbers, never value 0x??F)
  296 // Product: bits:12-15 (4 bits)
  297 //############################################################################################
  298 #ifdef __CC5X__
  299 #define HWPID_CLS2(prod,man) \
  300 #if prod < 0 || prod > 0xF \
  301 #error "HWPID_CLS2: invalid product number" \
  302 #endif \
  303 #if man < 0 || man > 0x01F || ( man & 1 ) == 0 || ( man & 0xF ) == 0xF \
  304 #error "HWPID_CLS2: invalid manufacturer number" \
  305 #endif \
  306 ( (uns16)(man) | ( (uns16)(prod) << 12 ) )
  307 #else
  308 #define HWPID_CLS2(prod,man) ( (uns16)(man) | ( (uns16)(prod) << 12 ) )
  309 #endif
  310 // -------------------------------------------------------------------------------------------
  311 // PROTRONIX s.r.o.
  312 #define HWPID_PROTRONIX   0x001
  313 
  314 // Temperature+Humidity+CO2 sensor
  315 // (0001_Protronix-T+RH+CO2.c)
  316 #define HWPID_PROTRONIX__TEMP_HUM_CO2                 HWPID_CLS2( 0x0, HWPID_PROTRONIX ) // 0x0001
  317 
  318 // Temperature+Humidity+VOC sensor
  319 // (1001_Protronix-T+RH+VOC.c)
  320 #define HWPID_PROTRONIX__TEMP_HUM_VOC                 HWPID_CLS2( 0x1, HWPID_PROTRONIX ) // 0x1001
  321 
  322 // Temperature+Humidity+CO2 sensor + Relay
  323 // (2001_Protronix-T+RH+CO2+Relay.c)
  324 #define HWPID_PROTRONIX__TEMP_HUM_CO2_RELAY           HWPID_CLS2( 0x2, HWPID_PROTRONIX ) // 0x2001
  325 
  326 // Temperature+Humidity sensor
  327 // (3001_Protronix-T+RH.c)
  328 #define HWPID_PROTRONIX__TEMP_HUM                     HWPID_CLS2( 0x3, HWPID_PROTRONIX ) // 0x3001
  329 
  330 // Temperature+Humidity+CO2 sensor [LP]
  331 // (4001_Protronix-LP-T+RH+CO2.c)
  332 #define HWPID_PROTRONIX__LP_TEMP_HUM_CO2              HWPID_CLS2( 0x4, HWPID_PROTRONIX ) // 0x4001
  333 
  334 // Temperature+Humidity sensor [LP]
  335 // (5001_Protronix-LP-T+RH.c)
  336 #define HWPID_PROTRONIX__LP_TEMP_HUM                  HWPID_CLS2( 0x5, HWPID_PROTRONIX ) // 0x5001
  337 
  338 // PM 2,5 sensor [LP]
  339 // (6001_Protronix-NLII_PM25.c)
  340 #define HWPID_PROTRONIX__NLII_PM25                    HWPID_CLS2( 0x6, HWPID_PROTRONIX ) // 0x6001
  341 
  342 // Temperature+Humidity+CO2 sensor Beaming
  343 // (7001_Protronix-NLB-CO2+RH+T-Beaming.c)
  344 #define HWPID_PROTRONIX__NLB_CO2_R_T_Beaming          HWPID_CLS2( 0x7, HWPID_PROTRONIX ) // 0x7001
  345 
  346 // TVOX+RH+T
  347 #define HWPID_PROTRONIX__NLII_TVOC_RH_T               HWPID_CLS2( 0x8, HWPID_PROTRONIX ) // 0x8001
  348 
  349 // NOX
  350 #define HWPID_PROTRONIX__NLII_NOX                     HWPID_CLS2( 0x9, HWPID_PROTRONIX ) // 0x9001
  351 
  352 // OL-NOX-IQRF
  353 #define HWPID_PROTRONIX__OL_NOX_IQRF                  HWPID_CLS2( 0xA, HWPID_PROTRONIX ) // 0xA001
  354 
  355 // NLII-CO2+TVOC-5-IQRF
  356 #define HWPID_PROTRONIX__NLII_CO2_TVOC_5_IQRF         HWPID_CLS2( 0xB, HWPID_PROTRONIX ) // 0xB001
  357 
  358 // -------------------------------------------------------------------------------------------
  359 // NETIO products a.s.
  360 #define HWPID_NETIO       0x003
  361 
  362 // Cobra 1 - 1x power plug
  363 // (0003_Netio-Cobra1.c)
  364 #define HWPID_NETIO__COBRA1                           HWPID_CLS2( 0x0, HWPID_NETIO )     // 0x0003
  365 
  366 // Cobra 1 - 1x power plug [LP]
  367 // (1003_Netio-LP-Cobra1.c)
  368 #define HWPID_NETIO__LP_COBRA1                        HWPID_CLS2( 0x1, HWPID_NETIO )     // 0x1003
  369 
  370 // -------------------------------------------------------------------------------------------
  371 // DATmoLUX a.s.
  372 #define HWPID_DATMOLUX    0x005
  373 
  374 // DATmoLUX Light
  375 // 0005_DATmoLUX-Light.*
  376 #define HWPID_DATMOLUX__LIGHT                         HWPID_CLS2( 0x0, HWPID_DATMOLUX )  // 0x0005
  377 
  378 // -------------------------------------------------------------------------------------------
  379 // CITIQ s.r.o.
  380 #define HWPID_CITIQ       0x007
  381 
  382 // -------------------------------------------------------------------------------------------
  383 // Austyn International s.r.o.
  384 #define HWPID_AUSTYN      0x009
  385 
  386 // Room temperature controller
  387 // (0009_RoomTemperatureController.c)
  388 #define HWPID_AUSTYN__ROOM_CONTROLLER                 HWPID_CLS2( 0x0, HWPID_AUSTYN )    // 0x0009
  389 
  390 // Austyn repeater for radiator heads
  391 // (1009_RepHlaAust-02.c)
  392 #define HWPID_AUSTYN__RepHlaAust_02                   HWPID_CLS2( 0x1, HWPID_AUSTYN )    // 0x1009
  393 
  394 // Austyn radiator head
  395 // (2009_HlaAust-02.c)
  396 #define HWPID_AUSTYN__HlaAust_02                      HWPID_CLS2( 0x2, HWPID_AUSTYN )    // 0x2009
  397 
  398 // Austyn repeater for radiator heads + SET01
  399 // (3009_RepHlaAust-02-T.c)
  400 #define HWPID_AUSTYN__RepHlaAust_02_T                 HWPID_CLS2( 0x3, HWPID_AUSTYN )    // 0x3009
  401 
  402 // -------------------------------------------------------------------------------------------
  403 // Aledo s.r.o.
  404 #define HWPID_ALEDO       0x00B
  405 
  406 // Room temperature controller
  407 // (000B_Aledo-Reader_R02A230.c)
  408 #define HWPID_ALEDO__READER_R02A230                   HWPID_CLS2( 0x0, HWPID_ALEDO )     // 0x000B
  409 
  410 // -------------------------------------------------------------------------------------------
  411 // SANELA spol. s r. o.
  412 #define HWPID_SANELA      0x00D
  413 
  414 // Sanela SL626 Person presence sensor
  415 // (000D_Sanela-SL626.c)
  416 #define HWPID_SANELA__SL626                           HWPID_CLS2( 0x0, HWPID_SANELA )    // 0x000D
  417 
  418 // Sanela SL626A sink sensor
  419 // (100D_Sanela-SL626A.c)
  420 #define HWPID_SANELA__SL626A                          HWPID_CLS2( 0x1, HWPID_SANELA )    // 0x100D
  421 
  422 // -------------------------------------------------------------------------------------------
  423 // TESLA Blatná, a.s.
  424 #define HWPID_TESLA_BLATNA  0x011
  425 
  426 // TESLA Blatná Smart City environmental module
  427 // (0011_TESLA_Blatna-EnvironmentalModule.c)
  428 #define HWPID_TESLA_BLATNA__EnvironmentalModule       HWPID_CLS2( 0x0, HWPID_TESLA_BLATNA )  // 0x0011
  429 
  430 // -------------------------------------------------------------------------------------------
  431 // JoTio Tech s.r.o.
  432 #define HWPID_JOTIO_TECH  0x013
  433 
  434 // IRIS
  435 #define HWPID_JOTIO_TECH__IRIS                        HWPID_CLS2( 0x0, HWPID_JOTIO_TECH )    // 0x0013
  436 
  437 // ALTAIR
  438 #define HWPID_JOTIO_TECH__ALTAIR                      HWPID_CLS2( 0x1, HWPID_JOTIO_TECH )    // 0x1013
  439 
  440 // -------------------------------------------------------------------------------------------
  441 // HARDWARIO s.r.o. (BigClown)
  442 #define HWPID_HARDWARIO  0x015
  443 
  444 // Presence sensor
  445 #define HWPID_HARDWARIO_PRESENCE_SENSOR               HWPID_CLS2( 0x0, HWPID_HARDWARIO )     // 0x0015
  446 
  447 // COOPER
  448 // (1015_HARDWARIO-COPPER.c)
  449 #define HWPID_HARDWARIO_COOPER                        HWPID_CLS2( 0x1, HWPID_HARDWARIO )     // 0x1015
  450 
  451 // -------------------------------------------------------------------------------------------
  452 // 4IOTECH s.r.o.
  453 #define HWPID_4IOTECH  0x017
  454 
  455 // 4IOT-SEN-01
  456 #define HWPID_4IOTECH_4IOT_SEN_01                     HWPID_CLS2( 0x0, HWPID_4IOTECH )       // 0x0017
  457 
  458 // -------------------------------------------------------------------------------------------
  459 // Liteplan Ltd.
  460 #define HWPID_LITEPLAN  0x019
  461 
  462 // IQD-DALI-01
  463 #define HWPID_LITEPLAN_IQD_DALI_01                    HWPID_CLS2( 0x0, HWPID_LITEPLAN )      // 0x0019
  464 
  465 
  466 // -------------------------------------------------------------------------------------------
  467 // Danlers https://www.danlers.co.uk/
  468 #define HWPID_DANLERS  0x01B
  469 
  470 // DANLERS-PIR
  471 // (001B_DANLERS-PIR.c)
  472 #define HWPID_DANLERS_PIR                             HWPID_CLS2( 0x0, HWPID_DANLERS )       // 0x001B
  473 
  474 //# Class #3 #################################################################################
  475 // Manufacturer: bits:0-11, bit.0=0, bit.3-9 != [0000000] (even numbers, but not 0x000)
  476 // Product: bits:12-15 (4 bits)
  477 //############################################################################################
  478 #ifdef __CC5X__
  479 #define HWPID_CLS3(prod,man) \
  480 #if prod < 0 || prod > 0xF \
  481 #error "HWPID_CLS3: invalid product number" \
  482 #endif \
  483 #if man <= 0 || man > 0xFFF || ( man & 0x3F8 ) == 0 || ( man & 1 ) != 0 \
  484 #error "HWPID_CLS3: invalid manufacturer number" \
  485 #endif \
  486 ( (uns16)(man) | ( (uns16)(prod) << 12 ) )
  487 #else
  488 #define HWPID_CLS3(prod,man) ( (uns16)(man) | ( (uns16)(prod) << 12 ) )
  489 #endif
  490 
  491 // -------------------------------------------------------------------------------------------
  492 // IQRF Tech s.r.o.
  493 #define HWPID_IQRF_TECH3      0x05E
  494 // For the fixed HWPID=C05E used by a special handler
  495 
  496 // (CustomDpaHandler-ChangeIQRFOS.c)
  497 #define HWPID_IQRF_TECH_ChangeIQRFOS                  HWPID_CLS3( 0xC, HWPID_IQRF_TECH3 ) // 0xC05E
  498 
  499 //# Class #4 #################################################################################
  500 // Manufacturer: bits:0-13, bit.0=1, bit.5-11 != [0000000] (odd numbers, never value 0x??F)
  501 // Product: bits:14-15 (2 bits)
  502 //############################################################################################
  503 #ifdef __CC5X__
  504 #define HWPID_CLS4(prod,man) \
  505 #if prod < 0 || prod > 0x3 \
  506 #error "HWPID_CLS4: invalid product number" \
  507 #endif \
  508 #if man < 0 || man > 0x3FFF || ( man & 1 ) == 0  || ( man & 0xFE0 ) == 0 || ( man & 0xF ) == 0xF \
  509 #error "HWPID_CLS4: invalid manufacturer number" \
  510 #endif \
  511 ( (uns16)(man) | ( (uns16)(prod) << 14 ) )
  512 #else
  513 #define HWPID_CLS4(prod,man) ( (uns16)(man) | ( (uns16)(prod) << 14 ) )
  514 #endif
  515 
  516 // -------------------------------------------------------------------------------------------
  517 
  518 //############################################################################################
  519 #endif  // _IQRFSTD_HWPID_
  520 //############################################################################################