2023-11-25 22:00:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
struct led15093_config {
|
|
|
|
bool enable;
|
|
|
|
bool high_baudrate;
|
2023-12-03 20:34:38 +00:00
|
|
|
unsigned int port_no;
|
2023-11-25 22:00:05 +00:00
|
|
|
char board_number[8];
|
|
|
|
char chip_number[5];
|
|
|
|
char boot_chip_number[5];
|
|
|
|
uint8_t fw_ver;
|
|
|
|
uint16_t fw_sum;
|
|
|
|
};
|
|
|
|
|
2023-12-19 11:43:26 +00:00
|
|
|
typedef int (*io_led_init_t)();
|
|
|
|
typedef void (*io_led_set_leds_t)(uint8_t board, uint8_t *rgb);
|
|
|
|
|
|
|
|
HRESULT led15093_hook_init(const struct led15093_config *cfg, io_led_init_t _led_init,
|
|
|
|
io_led_set_leds_t _set_leds, unsigned int first_port, unsigned int num_boards, uint8_t board_adr, uint8_t host_adr);
|
2023-12-03 20:34:38 +00:00
|
|
|
|