Coverage for tropicsquare / config / uap_rconfig_iconfig.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-03-27 21:24 +0000

1"""UAP R-CONFIG and I-CONFIG configuration classes""" 

2 

3from tropicsquare.config.uap_base import UapSingleFieldConfig, UapDualFieldConfig 

4 

5 

6class RConfigWriteEraseConfig(UapSingleFieldConfig): 

7 """UAP R-CONFIG Write/Erase configuration (CFG_UAP_R_CONFIG_WRITE_ERASE @ 0x30). 

8 

9 Controls which pairing key slots can write or erase R-CONFIG. 

10 Single 8-bit permission field. 

11 """ 

12 

13 

14class RConfigReadConfig(UapDualFieldConfig): 

15 """UAP R-CONFIG Read configuration (CFG_UAP_R_CONFIG_READ @ 0x34). 

16 

17 Controls which pairing key slots can read R-CONFIG. 

18 Two 8-bit permission fields: CFG and FUNC. 

19 """ 

20 

21 

22class IConfigWriteConfig(UapDualFieldConfig): 

23 """UAP I-CONFIG Write configuration (CFG_UAP_I_CONFIG_WRITE @ 0x40). 

24 

25 Controls which pairing key slots can write I-CONFIG. 

26 Two 8-bit permission fields: CFG and FUNC. 

27 """ 

28 

29 

30class IConfigReadConfig(UapDualFieldConfig): 

31 """UAP I-CONFIG Read configuration (CFG_UAP_I_CONFIG_READ @ 0x44). 

32 

33 Controls which pairing key slots can read I-CONFIG. 

34 Two 8-bit permission fields: CFG and FUNC. 

35 """