Регистры Allwinner H616

Сокращения  |  Дерево шин  |  Карта памяти

Контроллер термодатчика ( Руководство )

Имя модуля: Thermal Sensor , базовый адрес: 0x05070400

Руководство п. 3.10.5


Регистров: 23

Имя регистра | Смещение


  • 1) THS_CTRL | 0x0000

    typedef union  ths_ctrl
    {
      struct
      {
       unsigned tacq : 16;
       unsigned fs_div : 16;
      } b;
       unsigned long w;
    } THS_CTRL
       

  • 2) THS_EN | 0x0004

    typedef union  ths_en
    {
      struct
      {
       unsigned ths0_en : 1;
       unsigned ths1_en : 1;
       unsigned ths2_en : 1;
       unsigned ths3_en : 1;
       unsigned unused0 : 28;
      } b;
       unsigned long w;
    } THS_EN
       

  • 3) THS_PER | 0x0008

    typedef union  ths_per
    {
      struct
      {
       unsigned unused0 : 12;
       unsigned thermal_per : 20;
      } b;
       unsigned long w;
    } THS_PER
       

  • 4) THS_DATA_INTC | 0x0010

    typedef union  ths_data_intc
    {
      struct
      {
       unsigned ths0_data_irq_en : 1;
       unsigned ths1_data_irq_en : 1;
       unsigned ths2_data_irq_en : 1;
       unsigned ths3_data_irq_en : 1;
       unsigned unused0 : 28;
      } b;
       unsigned long w;
    } THS_DATA_INTC
       

  • 5) THS_SHUT_INTC | 0x0014

    typedef union  ths_shut_intc
    {
      struct
      {
       unsigned shut_int0_en : 1;
       unsigned shut_int1_en : 1;
       unsigned shut_int2_en : 1;
       unsigned shut_int3_en : 1;
       unsigned unused0 : 28;
      } b;
       unsigned long w;
    } THS_SHUT_INTC
       

  • 6) THS_ALARM_INTC | 0x0018

    typedef union  ths_alarm_intc
    {
      struct
      {
       unsigned alarm_int0_en : 1;
       unsigned alarm_int1_en : 1;
       unsigned alarm_int2_en : 1;
       unsigned alarm_int3_en : 1;
       unsigned unused0 : 28;
      } b;
       unsigned long w;
    } THS_ALARM_INTC
       

  • 7) THS_DATA_INTS | 0x0020

    typedef union  ths_data_ints
    {
      struct
      {
       unsigned ths0_data_irq_sts : 1;
       unsigned ths1_data_irq_sts : 1;
       unsigned ths2_data_irq_sts : 1;
       unsigned ths3_data_irq_sts : 1;
       unsigned unused0 : 28;
      } b;
       unsigned long w;
    } THS_DATA_INTS
       

  • 8) THS_SHUT_INTS | 0x0024

    typedef union  ths_shut_ints
    {
      struct
      {
       unsigned shut_int0_sts : 1;
       unsigned shut_int1_sts : 1;
       unsigned shut_int2_sts : 1;
       unsigned shut_int3_sts : 1;
       unsigned unused0 : 28;
      } b;
       unsigned long w;
    } THS_SHUT_INTS
       

  • 9) THS_ALARMO_INTS | 0x0028

    typedef union  ths_alarmo_ints
    {
      struct
      {
       unsigned alarm_off0_sts : 1;
       unsigned alarm_off1_sts : 1;
       unsigned alarm_off2_sts : 1;
       unsigned alarm_off3_sts : 1;
       unsigned unused0 : 28;
      } b;
       unsigned long w;
    } THS_ALARMO_INTS
       

  • 10) THS_ALARM_INTS | 0x002C

    typedef union  ths_alarm_ints
    {
      struct
      {
       unsigned alarm_int0_sts : 1;
       unsigned alarm_int1_sts : 1;
       unsigned alarm_int2_sts : 1;
       unsigned alarm_int3_sts : 1;
       unsigned unused0 : 28;
      } b;
       unsigned long w;
    } THS_ALARM_INTS
       

  • 11) THS_FILTER | 0x0030

    typedef union  ths_filter
    {
      struct
      {
       unsigned filter_type : 2;
       unsigned filter_en : 1;
       unsigned unused0 : 29;
      } b;
       unsigned long w;
    } THS_FILTER
       

  • 12) THS0_ALARM_CTRL | 0x0040

    typedef union  ths0_alarm_ctrl
    {
      struct
      {
       unsigned alarm0_t_hyst : 12;
       unsigned unused0 : 4;
       unsigned alarm0_t_hot : 12;
       unsigned unused1 : 4;
      } b;
       unsigned long w;
    } THS0_ALARM_CTRL
       

  • 13) THS1_ALARM_CTRL | 0x0044

    typedef union  ths1_alarm_ctrl
    {
      struct
      {
       unsigned alarm1_t_hyst : 12;
       unsigned unused0 : 4;
       unsigned alarm1_t_hot : 12;
       unsigned unused1 : 4;
      } b;
       unsigned long w;
    } THS1_ALARM_CTRL
       

  • 14) THS2_ALARM_CTRL | 0x0048

    typedef union  ths2_alarm_ctrl
    {
      struct
      {
       unsigned alarm2_t_hyst : 12;
       unsigned unused0 : 4;
       unsigned alarm2_t_hot : 12;
       unsigned unused1 : 4;
      } b;
       unsigned long w;
    } THS2_ALARM_CTRL
       

  • 15) THS3_ALARM_CTRL | 0x004C

    typedef union  ths3_alarm_ctrl
    {
      struct
      {
       unsigned alarm3_t_hyst : 12;
       unsigned unused0 : 4;
       unsigned alarm3_t_hot : 12;
       unsigned unused1 : 4;
      } b;
       unsigned long w;
    } THS3_ALARM_CTRL
       

  • 16) THS01_SHUTDOWN_CTRL | 0x0080

    typedef union  ths01_shutdown_ctrl
    {
      struct
      {
       unsigned shut0_t_hot : 12;
       unsigned unused0 : 4;
       unsigned shut1_t_hot : 12;
       unsigned unused1 : 4;
      } b;
       unsigned long w;
    } THS01_SHUTDOWN_CTRL
       

  • 17) THS23_SHUTDOWN_CTRL | 0x0084

    typedef union  ths23_shutdown_ctrl
    {
      struct
      {
       unsigned shut2_t_hot : 12;
       unsigned unused0 : 4;
       unsigned shut3_t_hot : 12;
       unsigned unused1 : 4;
      } b;
       unsigned long w;
    } THS23_SHUTDOWN_CTRL
       

  • 18) THS01_CDATA | 0x00A0

    typedef union  ths01_cdata
    {
      struct
      {
       unsigned ths0_cdata : 12;
       unsigned unused0 : 4;
       unsigned ths1_cdata : 12;
       unsigned unused1 : 4;
      } b;
       unsigned long w;
    } THS01_CDATA
       

  • 19) THS23_CDATA | 0x00A4

    typedef union  ths23_cdata
    {
      struct
      {
       unsigned ths2_cdata : 12;
       unsigned unused0 : 4;
       unsigned ths3_cdata : 12;
       unsigned unused1 : 4;
      } b;
       unsigned long w;
    } THS23_CDATA
       

  • 20) THS0_DATA | 0x00C0

    typedef union  ths0_data
    {
      struct
      {
       unsigned ths0_data : 12;
       unsigned unused0 : 20;
      } b;
       unsigned long w;
    } THS0_DATA
       

  • 21) THS1_DATA | 0x00C4

    typedef union  ths1_data
    {
      struct
      {
       unsigned ths1_data : 12;
       unsigned unused0 : 20;
      } b;
       unsigned long w;
    } THS1_DATA
       

  • 22) THS2_DATA | 0x00C8

    typedef union  ths2_data
    {
      struct
      {
       unsigned ths2_data : 12;
       unsigned unused0 : 20;
      } b;
       unsigned long w;
    } THS2_DATA
       

  • 23) THS3_DATA | 0x00CC

    typedef union  ths3_data
    {
      struct
      {
       unsigned ths3_data : 12;
       unsigned unused0 : 20;
      } b;
       unsigned long w;
    } THS3_DATA
       


  • Allwinner H616 Manual