dmx 2.0.0.0
|
Functions | |
void | dmx_cfg_setup (dmx_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | dmx_init (dmx_t *ctx, dmx_cfg_t *cfg) |
Initialization function. | |
void | dmx_reset (dmx_t *ctx, uint8_t dev_mode) |
Reset function. | |
void | dmx_generic_write (dmx_t *ctx, uint8_t *data_buf, uint16_t len) |
Generic write function. | |
err_t | dmx_generic_read (dmx_t *ctx, uint8_t *data_buf, uint16_t max_len) |
Generic read function. | |
void | dmx_send_cmd (dmx_t *ctx, uint8_t *cmd) |
Send command function. | |
void | dmx_run (dmx_t *ctx, uint8_t run_mode) |
Mode Setting function. | |
uint8_t | dmx_check_int (dmx_t *ctx) |
Interrupt Check function. | |
void | dmx_set_reset (dmx_t *ctx, uint8_t state) |
Reset Setting function. | |
void | dmx_set_auto_baud_rate (dmx_t *ctx, uint8_t state) |
Auto Baud Rate Setting function. | |
void dmx_cfg_setup | ( | dmx_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
uint8_t dmx_check_int | ( | dmx_t * | ctx | ) |
Interrupt Check function.
ctx | Click object. |
This function checks the interrupt state.
err_t dmx_generic_read | ( | dmx_t * | ctx, |
uint8_t * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
ctx | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void dmx_generic_write | ( | dmx_t * | ctx, |
uint8_t * | data_buf, | ||
uint16_t | len ) |
Generic write function.
ctx | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void dmx_reset | ( | dmx_t * | ctx, |
uint8_t | dev_mode ) |
Reset function.
ctx | Click object. |
void dmx_run | ( | dmx_t * | ctx, |
uint8_t | run_mode ) |
Mode Setting function.
ctx | Click object. |
run_mode | 0 - config mode, 1 - run mode |
This function allows user to put device in config or run mode.
void dmx_send_cmd | ( | dmx_t * | ctx, |
uint8_t * | cmd ) |
Send command function.
ctx | Click object. |
cmd | Command to be sent. |
void dmx_set_auto_baud_rate | ( | dmx_t * | ctx, |
uint8_t | state ) |
Auto Baud Rate Setting function.
ctx | Click object. |
state | ABR pin state. |
This function sets auto (default) baud rate.
void dmx_set_reset | ( | dmx_t * | ctx, |
uint8_t | state ) |
Reset Setting function.
ctx | Click object. |
state | RST pin state. |
This function sets reset pin state.