67 lines
1.5 KiB
C
67 lines
1.5 KiB
C
#ifndef __PEL_H__
|
|
#define __PEL_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#include "app_config.h"
|
|
#include "elite.h"
|
|
#include "elite_board.h"
|
|
|
|
#define VERSION_DATE_YEAR 25
|
|
#define VERSION_DATE_MONTH 3
|
|
#define VERSION_DATE_DAY 13
|
|
#define VERSION_DATE_HOUR 10
|
|
#define VERSION_DATE_MINUTE 0
|
|
|
|
#define PEL_0P5R_MASK (0x01 << 0)
|
|
#define PEL_1P0R_MASK (0x01 << 1)
|
|
#define PEL_2P0R_MASK (0x01 << 2)
|
|
#define PEL_4P0R_MASK (0x01 << 3)
|
|
#define PEL_8P0R_MASK (0x01 << 4)
|
|
#define PEL_16P2R_MASK (0x01 << 5)
|
|
#define PEL_32P4R_MASK (0x01 << 6)
|
|
#define PEL_63P4R_MASK (0x01 << 7)
|
|
#define PEL_127R_MASK (0x01 << 8)
|
|
#define PEL_255R_MASK (0x01 << 9)
|
|
#define PEL_511R_MASK (0x01 << 10)
|
|
#define PEL_1000R_MASK (0x01 << 11)
|
|
|
|
typedef struct
|
|
{
|
|
int32_t output_r1;
|
|
int32_t output_r2;
|
|
int32_t output_vo;
|
|
int32_t output_vc;
|
|
int32_t output_ve;
|
|
} pel_output_t;
|
|
|
|
typedef struct __PACKED
|
|
{
|
|
uint8_t mem_board_id;
|
|
uint32_t notify_time;
|
|
uint8_t packet_seq;
|
|
int32_t val_1;
|
|
int32_t val_2;
|
|
int32_t val_3;
|
|
int32_t val_4;
|
|
int32_t val_5;
|
|
float val_1_f;
|
|
float val_2_f;
|
|
float val_3_f;
|
|
float val_4_f;
|
|
float val_5_f;
|
|
uint16_t pattern_id;
|
|
uint32_t pattern;
|
|
} pel20_notify_packet1_t;
|
|
|
|
const elite_instance_t *pel_init(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ! __PEL_H__ */
|