TCIXTMA1 Hydrogen Sensing library.
More...
TCIXTMA1 Hydrogen Sensing library.
TCIXTMA1 library.
◆ tcixtma1_crc16_calculate()
| uint16_t tcixtma1_crc16_calculate |
( |
uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
Calculates CRC16 value for given data.
- Parameters
-
| data | the data to calculate the CRC for |
| len | length of the data |
- Returns
- uint16_t return CRC value
◆ tcixtma1_crc16_init_table()
| void tcixtma1_crc16_init_table |
( |
void |
| ) |
|
Initiliaze the CRC16 table.
Used for fast CRC16 lookups
◆ tcixtma1_get_hydrogen_concentration()
Gets the instantaneous current in Amps.
- Parameters
-
| storage | - pointer to already initialized TCIXTMA1 struct |
| out_hydrogen_con | - hydrogen concentration |
- Returns
- STATUS_CODE_OK on success
◆ tcixtma1_init()
Initialize the TCIXTMA1 driver.
- Parameters
-
| storage | - a pointer to the TCIXTMA1 struct, to be initialized |
| i2c_port | - I2C port peripheral |
| i2c_address | - I2C address peripheral |
- Returns
- STATUS_CODE_OK on success