staticbool da9055_register_readable(struct device *dev, unsignedint reg)
{ switch (reg) { case DA9055_REG_STATUS_A: case DA9055_REG_STATUS_B: case DA9055_REG_EVENT_A: case DA9055_REG_EVENT_B: case DA9055_REG_EVENT_C: case DA9055_REG_IRQ_MASK_A: case DA9055_REG_IRQ_MASK_B: case DA9055_REG_IRQ_MASK_C:
case DA9055_REG_CONTROL_A: case DA9055_REG_CONTROL_B: case DA9055_REG_CONTROL_C: case DA9055_REG_CONTROL_D: case DA9055_REG_CONTROL_E:
case DA9055_REG_ADC_MAN: case DA9055_REG_ADC_CONT: case DA9055_REG_VSYS_MON: case DA9055_REG_ADC_RES_L: case DA9055_REG_ADC_RES_H: case DA9055_REG_VSYS_RES: case DA9055_REG_ADCIN1_RES: case DA9055_REG_ADCIN2_RES: case DA9055_REG_ADCIN3_RES:
case DA9055_REG_COUNT_S: case DA9055_REG_COUNT_MI: case DA9055_REG_COUNT_H: case DA9055_REG_COUNT_D: case DA9055_REG_COUNT_MO: case DA9055_REG_COUNT_Y: case DA9055_REG_ALARM_H: case DA9055_REG_ALARM_D: case DA9055_REG_ALARM_MI: case DA9055_REG_ALARM_MO: case DA9055_REG_ALARM_Y:
case DA9055_REG_GPIO0_1: case DA9055_REG_GPIO2: case DA9055_REG_GPIO_MODE0_2:
case DA9055_REG_BCORE_CONT: case DA9055_REG_BMEM_CONT: case DA9055_REG_LDO1_CONT: case DA9055_REG_LDO2_CONT: case DA9055_REG_LDO3_CONT: case DA9055_REG_LDO4_CONT: case DA9055_REG_LDO5_CONT: case DA9055_REG_LDO6_CONT: case DA9055_REG_BUCK_LIM: case DA9055_REG_BCORE_MODE: case DA9055_REG_VBCORE_A: case DA9055_REG_VBMEM_A: case DA9055_REG_VLDO1_A: case DA9055_REG_VLDO2_A: case DA9055_REG_VLDO3_A: case DA9055_REG_VLDO4_A: case DA9055_REG_VLDO5_A: case DA9055_REG_VLDO6_A: case DA9055_REG_VBCORE_B: case DA9055_REG_VBMEM_B: case DA9055_REG_VLDO1_B: case DA9055_REG_VLDO2_B: case DA9055_REG_VLDO3_B: case DA9055_REG_VLDO4_B: case DA9055_REG_VLDO5_B: case DA9055_REG_VLDO6_B: returntrue; default: returnfalse;
}
}
staticbool da9055_register_writeable(struct device *dev, unsignedint reg)
{ switch (reg) { case DA9055_REG_STATUS_A: case DA9055_REG_STATUS_B: case DA9055_REG_EVENT_A: case DA9055_REG_EVENT_B: case DA9055_REG_EVENT_C: case DA9055_REG_IRQ_MASK_A: case DA9055_REG_IRQ_MASK_B: case DA9055_REG_IRQ_MASK_C:
case DA9055_REG_CONTROL_A: case DA9055_REG_CONTROL_B: case DA9055_REG_CONTROL_C: case DA9055_REG_CONTROL_D: case DA9055_REG_CONTROL_E:
case DA9055_REG_ADC_MAN: case DA9055_REG_ADC_CONT: case DA9055_REG_VSYS_MON: case DA9055_REG_ADC_RES_L: case DA9055_REG_ADC_RES_H: case DA9055_REG_VSYS_RES: case DA9055_REG_ADCIN1_RES: case DA9055_REG_ADCIN2_RES: case DA9055_REG_ADCIN3_RES:
case DA9055_REG_COUNT_S: case DA9055_REG_COUNT_MI: case DA9055_REG_COUNT_H: case DA9055_REG_COUNT_D: case DA9055_REG_COUNT_MO: case DA9055_REG_COUNT_Y: case DA9055_REG_ALARM_H: case DA9055_REG_ALARM_D: case DA9055_REG_ALARM_MI: case DA9055_REG_ALARM_MO: case DA9055_REG_ALARM_Y:
case DA9055_REG_GPIO0_1: case DA9055_REG_GPIO2: case DA9055_REG_GPIO_MODE0_2:
case DA9055_REG_BCORE_CONT: case DA9055_REG_BMEM_CONT: case DA9055_REG_LDO1_CONT: case DA9055_REG_LDO2_CONT: case DA9055_REG_LDO3_CONT: case DA9055_REG_LDO4_CONT: case DA9055_REG_LDO5_CONT: case DA9055_REG_LDO6_CONT: case DA9055_REG_BUCK_LIM: case DA9055_REG_BCORE_MODE: case DA9055_REG_VBCORE_A: case DA9055_REG_VBMEM_A: case DA9055_REG_VLDO1_A: case DA9055_REG_VLDO2_A: case DA9055_REG_VLDO3_A: case DA9055_REG_VLDO4_A: case DA9055_REG_VLDO5_A: case DA9055_REG_VLDO6_A: case DA9055_REG_VBCORE_B: case DA9055_REG_VBMEM_B: case DA9055_REG_VLDO1_B: case DA9055_REG_VLDO2_B: case DA9055_REG_VLDO3_B: case DA9055_REG_VLDO4_B: case DA9055_REG_VLDO5_B: case DA9055_REG_VLDO6_B: returntrue; default: returnfalse;
}
}
staticbool da9055_register_volatile(struct device *dev, unsignedint reg)
{ switch (reg) { case DA9055_REG_STATUS_A: case DA9055_REG_STATUS_B: case DA9055_REG_EVENT_A: case DA9055_REG_EVENT_B: case DA9055_REG_EVENT_C:
case DA9055_REG_CONTROL_A: case DA9055_REG_CONTROL_E:
case DA9055_REG_ADC_MAN: case DA9055_REG_ADC_RES_L: case DA9055_REG_ADC_RES_H: case DA9055_REG_VSYS_RES: case DA9055_REG_ADCIN1_RES: case DA9055_REG_ADCIN2_RES: case DA9055_REG_ADCIN3_RES:
case DA9055_REG_COUNT_S: case DA9055_REG_COUNT_MI: case DA9055_REG_COUNT_H: case DA9055_REG_COUNT_D: case DA9055_REG_COUNT_MO: case DA9055_REG_COUNT_Y: case DA9055_REG_ALARM_MI:
case DA9055_REG_BCORE_CONT: case DA9055_REG_BMEM_CONT: case DA9055_REG_LDO1_CONT: case DA9055_REG_LDO2_CONT: case DA9055_REG_LDO3_CONT: case DA9055_REG_LDO4_CONT: case DA9055_REG_LDO5_CONT: case DA9055_REG_LDO6_CONT: returntrue; default: returnfalse;
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.