Revision a9c9cd33 source/P9221R/v1/alld_P9221R_v1.c
| source/P9221R/v1/alld_P9221R_v1.c | ||
|---|---|---|
| 112 | 112 |
* @param[in] timeout timeout |
| 113 | 113 |
* @return An indicator whether the call was successfull |
| 114 | 114 |
*/ |
| 115 |
apalExitStatus_t p9221r_lld_read_x_alignment(const P9221RDriver* const p9221r, int32_t const x_alignment, const apalTime_t timeout)
|
|
| 115 |
apalExitStatus_t p9221r_lld_read_x_alignment(const P9221RDriver* const p9221r, int8_t* const x_alignment, const apalTime_t timeout)
|
|
| 116 | 116 |
{
|
| 117 |
apalExitStatus_t status = NULL; |
|
| 117 |
uint8_t address = P9221R_LLD_REGISTER_ALIGNMENT_X; |
|
| 118 |
apalExitStatus_t status = apalI2CMasterTransmit(p9221r->i2cd, (P9221R_LLD_I2C_ADDR_FIXED | p9221r->addr), &address, 2, x_alignment, 1, timeout); |
|
| 118 | 119 |
|
| 119 | 120 |
return status; |
| 120 | 121 |
} |
| ... | ... | |
| 127 | 128 |
* @param[in] timeout timeout |
| 128 | 129 |
* @return An indicator whether the call was successfull |
| 129 | 130 |
*/ |
| 130 |
apalExitStatus_t p9221r_lld_read_y_alignment(const P9221RDriver* const p9221r, int32_t const y_alignment, const apalTime_t timeout)
|
|
| 131 |
apalExitStatus_t p9221r_lld_read_y_alignment(const P9221RDriver* const p9221r, int8_t* const y_alignment, const apalTime_t timeout)
|
|
| 131 | 132 |
{
|
| 132 |
apalExitStatus_t status = NULL; |
|
| 133 |
uint8_t address = P9221R_LLD_REGISTER_ALIGNMENT_Y; |
|
| 134 |
apalExitStatus_t status = apalI2CMasterTransmit(p9221r->i2cd, (P9221R_LLD_I2C_ADDR_FIXED | p9221r->addr), &address, 2, y_alignment, 1, timeout); |
|
| 133 | 135 |
|
| 134 | 136 |
return status; |
| 135 | 137 |
} |
| ... | ... | |
| 142 | 144 |
* @param[in] timeout timeout |
| 143 | 145 |
* @return An indicator whether the call was successfull |
| 144 | 146 |
*/ |
| 145 |
apalExitStatus_t p9221r_lld_read_voltage(const P9221RDriver* const p9221r, int32_t const voltage, const apalTime_t timeout)
|
|
| 147 |
apalExitStatus_t p9221r_lld_read_voltage(const P9221RDriver* const p9221r, uint16_t* const voltage, const apalTime_t timeout)
|
|
| 146 | 148 |
{
|
| 147 | 149 |
apalExitStatus_t status = NULL; |
| 148 | 150 |
|
| ... | ... | |
| 157 | 159 |
* @param[in] timeout timeout |
| 158 | 160 |
* @return An indicator whether the call was successfull |
| 159 | 161 |
*/ |
| 160 |
apalExitStatus_t p9221r_lld_read_current(const P9221RDriver* const p9221r, int32_t const current, const apalTime_t timeout)
|
|
| 162 |
apalExitStatus_t p9221r_lld_read_current(const P9221RDriver* const p9221r, uint16_t* const current, const apalTime_t timeout)
|
|
| 161 | 163 |
{
|
| 162 | 164 |
apalExitStatus_t status = NULL; |
| 163 | 165 |
|
Also available in: Unified diff