Revision 21076167 source/alld_bq27500.c
| source/alld_bq27500.c | ||
|---|---|---|
| 61 | 61 |
* |
| 62 | 62 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
| 63 | 63 |
*/ |
| 64 |
inline apalExitStatus_t |
|
| 65 |
bq27500_lld_read_batlow(const BQ27500Driver* const bq27500, bq27500_lld_batlow_t* const batlow) |
|
| 64 |
apalExitStatus_t bq27500_lld_read_batlow(const BQ27500Driver* const bq27500, bq27500_lld_batlow_t* const batlow) |
|
| 66 | 65 |
{
|
| 67 | 66 |
apalDbgAssert(bq27500 != NULL); |
| 68 | 67 |
apalDbgAssert(batlow != NULL); |
| ... | ... | |
| 80 | 79 |
* |
| 81 | 80 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
| 82 | 81 |
*/ |
| 83 |
inline apalExitStatus_t |
|
| 84 |
bq27500_lld_read_batgood(const BQ27500Driver* const bq27500, bq27500_lld_batgood_t* const batgood) |
|
| 82 |
apalExitStatus_t bq27500_lld_read_batgood(const BQ27500Driver* const bq27500, bq27500_lld_batgood_t* const batgood) |
|
| 85 | 83 |
{
|
| 86 | 84 |
apalDbgAssert(bq27500 != NULL); |
| 87 | 85 |
apalDbgAssert(batgood != NULL); |
| ... | ... | |
| 101 | 99 |
* |
| 102 | 100 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
| 103 | 101 |
*/ |
| 104 |
inline apalExitStatus_t |
|
| 105 |
bq27500_lld_std_command(const BQ27500Driver* const bq27500, const bq27500_lld_std_command_t cmd, uint16_t* const dst, const apalTime_t timeout) |
|
| 102 |
apalExitStatus_t bq27500_lld_std_command(const BQ27500Driver* const bq27500, const bq27500_lld_std_command_t cmd, uint16_t* const dst, const apalTime_t timeout) |
|
| 106 | 103 |
{
|
| 107 | 104 |
apalDbgAssert(bq27500 != NULL); |
| 108 | 105 |
apalDbgAssert(dst != NULL); |
| ... | ... | |
| 121 | 118 |
* |
| 122 | 119 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
| 123 | 120 |
*/ |
| 124 |
inline apalExitStatus_t |
|
| 125 |
bq27500_lld_sub_command_call(const BQ27500Driver* const bq27500, const bq27500_lld_control_subcmd_t cmd, const apalTime_t timeout) |
|
| 121 |
apalExitStatus_t bq27500_lld_sub_command_call(const BQ27500Driver* const bq27500, const bq27500_lld_control_subcmd_t cmd, const apalTime_t timeout) |
|
| 126 | 122 |
{
|
| 127 | 123 |
apalDbgAssert(bq27500 != NULL); |
| 128 | 124 |
|
| ... | ... | |
| 138 | 134 |
* |
| 139 | 135 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
| 140 | 136 |
*/ |
| 141 |
inline apalExitStatus_t |
|
| 142 |
bq27500_lld_sub_command_read(const BQ27500Driver* const bq27500, uint16_t* const data, const apalTime_t timeout) |
|
| 137 |
apalExitStatus_t bq27500_lld_sub_command_read(const BQ27500Driver* const bq27500, uint16_t* const data, const apalTime_t timeout) |
|
| 143 | 138 |
{
|
| 144 | 139 |
apalDbgAssert(bq27500 != NULL); |
| 145 | 140 |
apalDbgAssert(data != NULL); |
| ... | ... | |
| 162 | 157 |
* |
| 163 | 158 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
| 164 | 159 |
*/ |
| 165 |
inline apalExitStatus_t |
|
| 166 |
bq27500_lld_ext_command(const BQ27500Driver* const bq27500, const bq27500_lld_ext_command_t cmd, const bq27500_lld_ext_cmd_access_t rw, uint8_t* const buffer, const uint8_t length, const uint8_t offset, const apalTime_t timeout) |
|
| 160 |
apalExitStatus_t bq27500_lld_ext_command(const BQ27500Driver* const bq27500, const bq27500_lld_ext_command_t cmd, const bq27500_lld_ext_cmd_access_t rw, uint8_t* const buffer, const uint8_t length, const uint8_t offset, const apalTime_t timeout) |
|
| 167 | 161 |
{
|
| 168 | 162 |
apalDbgAssert(bq27500 != NULL); |
| 169 | 163 |
apalDbgAssert(buffer != NULL); |
| ... | ... | |
| 186 | 180 |
* |
| 187 | 181 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
| 188 | 182 |
*/ |
| 189 |
inline apalExitStatus_t |
|
| 190 |
bq27500_lld_send_ctnl_data(const BQ27500Driver* const bq27500, const uint16_t data, const apalTime_t timeout) |
|
| 183 |
apalExitStatus_t bq27500_lld_send_ctnl_data(const BQ27500Driver* const bq27500, const uint16_t data, const apalTime_t timeout) |
|
| 191 | 184 |
{
|
| 192 | 185 |
apalDbgAssert(bq27500 != NULL); |
| 193 | 186 |
|
| ... | ... | |
| 202 | 195 |
* |
| 203 | 196 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
| 204 | 197 |
*/ |
| 205 |
inline apalExitStatus_t |
|
| 206 |
bq27500_lld_compute_blockdata_checksum(const uint8_t* const blockdata, uint8_t* const sum) |
|
| 198 |
apalExitStatus_t bq27500_lld_compute_blockdata_checksum(const uint8_t* const blockdata, uint8_t* const sum) |
|
| 207 | 199 |
{
|
| 208 | 200 |
apalDbgAssert(blockdata != NULL); |
| 209 | 201 |
apalDbgAssert(sum != NULL); |
Also available in: Unified diff