pcan_cantact_another_one/Src/pcan_led.h

25 lines
358 B
C
Raw Normal View History

2020-06-03 04:33:18 -07:00
#pragma once
#include <stdint.h>
enum e_pcan_led
{
LED_CH0_TX,
LED_CH0_RX,
LED_STAT,
2020-06-03 04:33:18 -07:00
LED_TOTAL,
2020-06-03 04:33:18 -07:00
};
enum e_pcan_led_mode
{
LED_MODE_NONE,
LED_MODE_ON,
LED_MODE_OFF,
LED_MODE_BLINK_FAST,
LED_MODE_BLINK_SLOW,
2020-06-03 04:33:18 -07:00
};
void pcan_led_init(void);
void pcan_led_set_mode(int led, int mode, uint16_t arg);
void pcan_led_poll(void);