Battery.h

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Where is testBatteryI2cStatusOverride (from BatteryDriver)?

Where is testBatteryI2cStatusOverride (from BatteryDriver)?

Add blank line before return statement.

Add blank line before return statement.

LDT-4072: added publish interval override

  1. … 2 more files in changeset.
Updated battery monitor per review feedback

  1. … 4 more files in changeset.
Merge these 3 override functions (and message IDs) into one "array style" override function.

Merge these 3 override functions (and message IDs) into one "array style" override function.

( void )

( void )

Change 0xFFFFFFFF to HEX_32_BIT_FULL_SCALE

Change 0xFFFFFFFF to HEX_32_BIT_FULL_SCALE

Swap the order of these two.

Swap the order of these two.

LDT-4072: Battery driver and monitor implementation updates

  1. … 3 more files in changeset.
Just use 0x0 and 0xFFFFFFFF

Just use 0x0 and 0xFFFFFFFF

NUM_OF_BATTERY_REGISTERS - 1

NUM_OF_BATTERY_REGISTERS - 1

Put 2 items at end of the list here: BATTERY_END_OF_LIST_TIME_TO_PUBLISH NUM_OF_BATTERY_REGISTERS

Put 2 items at end of the list here:
BATTERY_END_OF_LIST_TIME_TO_PUBLISH
NUM_OF_BATTERY_REGISTERS

Put this one back to NUM_OF_BATTERY_DEVICES.

Put this one back to NUM_OF_BATTERY_DEVICES.

Don't need min/max for this. Just use 0x0 and 0xFFFFFFFF where needed.

Don't need min/max for this. Just use 0x0 and 0xFFFFFFFF where needed.

I don't think we need these min/max #defines. Just use 0x0 for minimums and 0xFFFFFFFF for maximums.

I don't think we need these min/max #defines. Just use 0x0 for minimums and 0xFFFFFFFF for maximums.

Not a float.

Not a float.

Not a float.

Not a float.

Not a float anymore. Use u32Override function and no need to cast the pointer.

Not a float anymore. Use u32Override function and no need to cast the pointer.

Should we publish all registers read?

Should we publish all registers read?

Remove this comment since we have a comment to right.

Remove this comment since we have a comment to right.

Remove comment.

Remove comment.

Set them individually instead of with memset.

Set them individually instead of with memset.

Add blank line before a /// comment.

Add blank line before a /// comment.

device and register is fine. Or deviceSel and registerSel.

device and register is fine. Or deviceSel and registerSel.

LDT-4072: code comment updates

  1. … 3 more files in changeset.
slaveAddr should be an enum now and so just "device".

slaveAddr should be an enum now and so just "device".

LDT-4072: Address second code review comments

  1. … 4 more files in changeset.
Add a banner before Dialin test support functions (see other units for example).

Add a banner before Dialin test support functions (see other units for example).

Initialize .override to OVERRIDE_RESET

Initialize .override to OVERRIDE_RESET

Why is this commented out? Do we not need to initialize it?

Why is this commented out? Do we not need to initialize it?