this PR add sign correction feature for bipolar input, serial read
based on previous program, read data is stored in uint32_t data type and
for 26 bits version, bit31-bit26 is set to 0, bit25-bit8 is 18bits read data, and bit7-bit0 is status information, this pr sets seperated adc data and status info to 2 different array by input pointered, and set upper bits to 1 for negative bipolar input converted data
for 18 bits version bit32-bit18 are 0, bit17-bit0 are data, upper bits are set to 1 for negative bipolar input converted data
so user can simply change array type to int32_t to get correctted adc data.
PR Type
[ ] Bug fix (change that fixes an issue)
[x ] New feature (change that adds new functionality)
[ ] Breaking change (has dependencies in other repos or will cause CI to fail)
Pull Request Description
this PR add sign correction feature for bipolar input, serial read based on previous program, read data is stored in uint32_t data type and
for 26 bits version, bit31-bit26 is set to 0, bit25-bit8 is 18bits read data, and bit7-bit0 is status information, this pr sets seperated adc data and status info to 2 different array by input pointered, and set upper bits to 1 for negative bipolar input converted data
for 18 bits version bit32-bit18 are 0, bit17-bit0 are data, upper bits are set to 1 for negative bipolar input converted data
so user can simply change array type to int32_t to get correctted adc data.
PR Type
PR Checklist