ultrasonic5 2.1.0.0
|
This file contains API for Ultrasonic 5 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
#include "drv_analog_in.h"
#include "drv_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | ultrasonic5_t |
Ultrasonic 5 Click context object. More... | |
struct | ultrasonic5_cfg_t |
Ultrasonic 5 Click configuration object. More... | |
Enumerations | |
enum | ultrasonic5_return_value_t { ULTRASONIC5_OK = 0 , ULTRASONIC5_ERROR = -1 } |
Ultrasonic 5 Click return value data. More... | |
Functions | |
void | ultrasonic5_cfg_setup (ultrasonic5_cfg_t *cfg) |
Ultrasonic 5 configuration object setup function. | |
err_t | ultrasonic5_init (ultrasonic5_t *ctx, ultrasonic5_cfg_t *cfg) |
Ultrasonic 5 initialization function. | |
err_t | ultrasonic5_default_cfg (ultrasonic5_t *ctx) |
Ultrasonic 5 default configuration function. | |
err_t | ultrasonic5_write_register (ultrasonic5_t *ctx, uint8_t reg, uint8_t data_in) |
Ultrasonic 5 data writing function. | |
err_t | ultrasonic5_read_register (ultrasonic5_t *ctx, uint8_t reg, uint8_t *data_out) |
Ultrasonic 5 data reading function. | |
err_t | ultrasonic5_check_communication (ultrasonic5_t *ctx) |
Ultrasonic 5 check communication function. | |
void | ultrasonic5_set_io1_pin (ultrasonic5_t *ctx) |
Ultrasonic 5 set io1 pin function. | |
void | ultrasonic5_clear_io1_pin (ultrasonic5_t *ctx) |
Ultrasonic 5 clear io1 pin function. | |
uint8_t | ultrasonic5_get_out4_pin (ultrasonic5_t *ctx) |
Ultrasonic 5 get out4 pin function. | |
err_t | ultrasonic5_read_an_pin_value (ultrasonic5_t *ctx, uint16_t *data_out) |
Ultrasonic 5 read AN pin value function. | |
err_t | ultrasonic5_read_an_pin_voltage (ultrasonic5_t *ctx, float *data_out) |
Ultrasonic 5 read AN pin voltage level function. | |
err_t | ultrasonic5_set_duty_cycle (ultrasonic5_t *ctx, float duty_cycle) |
Ultrasonic 5 sets PWM duty cycle. | |
err_t | ultrasonic5_pwm_stop (ultrasonic5_t *ctx) |
Ultrasonic 5 stop PWM module. | |
err_t | ultrasonic5_pwm_start (ultrasonic5_t *ctx) |
Ultrasonic 5 start PWM module. | |
This file contains API for Ultrasonic 5 Click Driver.