ledringr 2.0.0.0
|
Functions | |
void | ledringr_cfg_setup (ledringr_cfg_t *cfg) |
Config Object Initialization function. | |
LEDRINGR_RETVAL | ledringr_init (ledringr_t *ctx, ledringr_cfg_t *cfg) |
Initialization function. | |
void | ledringr_transfer_data (ledringr_t *ctx, uint8_t *write_buf, uint16_t wbuf_size, uint8_t *read_buf, uint16_t rbuf_size) |
Transfer data function. | |
void | ledringr_write_data (ledringr_t *ctx, uint32_t data_to_write) |
Generic write function. | |
void | ledringr_turn_on_led (ledringr_t *ctx, uint8_t led_position) |
Turn On LED by position. | |
void | ledringr_led_ring_set (ledringr_t *ctx) |
Set led. | |
void | ledringr_led_ring_reset (ledringr_t *ctx) |
Set led. | |
void ledringr_cfg_setup | ( | ledringr_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
LEDRINGR_RETVAL ledringr_init | ( | ledringr_t * | ctx, |
ledringr_cfg_t * | cfg ) |
Initialization function.
ledringr | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void ledringr_led_ring_reset | ( | ledringr_t * | ctx | ) |
Set led.
ctx | Click object. |
@description Function sets led's to standby
void ledringr_led_ring_set | ( | ledringr_t * | ctx | ) |
Set led.
ctx | Click object. |
@description Function sets led's to standby
void ledringr_transfer_data | ( | ledringr_t * | ctx, |
uint8_t * | write_buf, | ||
uint16_t | wbuf_size, | ||
uint8_t * | read_buf, | ||
uint16_t | rbuf_size ) |
Transfer data function.
ctx | Click object. |
write_buf | Write data. |
wbuf_size | Buffer size. |
read_buf | Read buffer. |
rbuf_size | Buffer size. |
@description This function transfers data to/from the click module.
void ledringr_turn_on_led | ( | ledringr_t * | ctx, |
uint8_t | led_position ) |
Turn On LED by position.
ctx | Click object. |
led_position | Led position. |
@description Function turn On LED by position.
void ledringr_write_data | ( | ledringr_t * | ctx, |
uint32_t | data_to_write ) |
Generic write function.
ctx | Click object. |
data_to_write | Data to write. |
@description This function turn On led by data.