stspin250 2.0.0.0
|
This file contains API for STSPIN250 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | stspin250_t |
Click ctx object definition. More... | |
struct | stspin250_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | STSPIN250_MAP_MIKROBUS(cfg, mikrobus) |
#define | STSPIN250_RETVAL uint8_t |
#define | STSPIN250_OK 0x00 |
#define | STSPIN250_INIT_ERROR 0xFF |
#define | STSPIN250_DEVICE_ENABLE 1 |
#define | STSPIN250_DEVICE_DISABLE 0 |
#define | STSPIN250_DEF_FREQ 20000 |
Functions | |
void | stspin250_cfg_setup (stspin250_cfg_t *cfg) |
Config Object Initialization function. | |
STSPIN250_RETVAL | stspin250_init (stspin250_t *ctx, stspin250_cfg_t *cfg) |
Initialization function. | |
void | stspin250_default_cfg (stspin250_t *ctx) |
Click Default Configuration function. | |
void | stspin250_set_duty_cycle (stspin250_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
void | stspin250_pwm_stop (stspin250_t *ctx) |
Stop PWM module. | |
void | stspin250_pwm_start (stspin250_t *ctx) |
Start PWM module. | |
void | stspin250_enable (stspin250_t *ctx, uint8_t state) |
Enable pin function. | |
void | stspin250_set_ph (stspin250_t *ctx, uint8_t state) |
Dir ctrl pin function. | |
void | stspin250_reset (stspin250_t *ctx) |
Reset pin function. | |
uint8_t | stspin250_get_fault (stspin250_t *ctx) |
Fault get function. | |
This file contains API for STSPIN250 Click driver.