source: trunk/firmware/SES/Drivers/INA233/ina233.c@ 9

Last change on this file since 9 was 1, checked in by f.jahn, 3 years ago
File size: 462 bytes
RevLine 
[1]1#include <math.h>
2
3#include "ina233.h"
4
5//-----------------------------------------------------------------------------
6
7int INA233_GetRealVBUS(int16_t vbus_value)
8{
9 return (vbus_value>>3);
10}
11
12//-----------------------------------------------------------------------------
13
14int INA233_Get_VSHUNT_uV(int16_t vshunt_value)
15{
16 return ((vshunt_value>>2)*10);
17}
18
19//-----------------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.