|
void | pcr_cfg_setup (pcr_cfg_t *cfg) |
| PCR configuration object setup function.
|
|
err_t | pcr_init (pcr_t *ctx, pcr_cfg_t *cfg) |
| PCR initialization function.
|
|
err_t | pcr_default_cfg (pcr_t *ctx) |
| PCR default configuration function.
|
|
err_t | pcr_generic_write (pcr_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
| PCR I2C writing function.
|
|
err_t | pcr_generic_read (pcr_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
| PCR I2C reading function.
|
|
void | pcr_set_wup_pin (pcr_t *ctx, uint8_t pin_state) |
| PCR set wake up pin state function.
|
|
void | pcr_set_rst_pin (pcr_t *ctx, uint8_t pin_state) |
| PCR set reset pin state function.
|
|
uint8_t | pcr_get_int_pin (pcr_t *ctx) |
| PCR get interrupt pin state function.
|
|
void | pcr_hw_reset (pcr_t *ctx) |
| PCR hardware reset function.
|
|
err_t | pcr_write_reg (pcr_t *ctx, uint16_t reg, uint32_t data_in) |
| PCR register writing function.
|
|
err_t | pcr_read_reg (pcr_t *ctx, uint16_t reg, uint32_t *data_out) |
| PCR register reading function.
|
|
err_t | pcr_get_status (pcr_t *ctx, uint32_t *status) |
| PCR get status function.
|
|
err_t | pcr_check_if_busy (pcr_t *ctx) |
| PCR check if device is busy function.
|
|
err_t | pcr_check_if_ok (pcr_t *ctx) |
| PCR check if device is ok function.
|
|
err_t | pcr_get_distance (pcr_t *ctx, uint32_t *distance_data) |
| PCR read distance function.
|
|
This file contains API for PCR Click Driver.