LibDriver EM4095
Loading...
Searching...
No Matches
driver_em4095_basic.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_EM4095_BASIC_H
38#define DRIVER_EM4095_BASIC_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
52
56#define EM4095_BASIC_DEFAULT_DIV 64
57
65uint8_t em4095_basic_irq_handler(void);
66
75uint8_t em4095_basic_init(void (*callback)(em4095_mode_t mode, em4095_decode_t *buf, uint16_t len));
76
84uint8_t em4095_basic_deinit(void);
85
95uint8_t em4095_basic_read(uint8_t *buf, uint16_t len);
96
106uint8_t em4095_basic_write(uint8_t *buf, uint16_t len);
107
116uint8_t em4095_basic_set_div(uint32_t clock_div);
117
121
122#ifdef __cplusplus
123}
124#endif
125
126#endif
driver em4095 interface header file
struct em4095_decode_s em4095_decode_t
em4095 decode structure definition
em4095_mode_t
em4095 mode enumeration definition
uint8_t em4095_basic_irq_handler(void)
basic irq
uint8_t em4095_basic_write(uint8_t *buf, uint16_t len)
basic example write
uint8_t em4095_basic_init(void(*callback)(em4095_mode_t mode, em4095_decode_t *buf, uint16_t len))
basic example init
uint8_t em4095_basic_deinit(void)
basic example deinit
uint8_t em4095_basic_set_div(uint32_t clock_div)
basic example set clock div
uint8_t em4095_basic_read(uint8_t *buf, uint16_t len)
basic example read