| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef __BREAKER_H_
- #define __BREAKER_H_
- typedef char S8;
- typedef short S16;
- typedef int S32;
- typedef unsigned char U8;
- typedef unsigned short U16;
- typedef unsigned int U32;
- enum{
- BREAKER_CHANNAL_1 = 1,
- BREAKER_CHANNAL_2,
- BREAKER_CHANNAL_3,
- BREAKER_CHANNAL_4,
- BREAKER_CHANNAL_5,
- BREAKER_CHANNAL_6,
- BREAKER_CHANNAL_ERR
- };
- typedef struct{
- U16 channel[7];
- }breaker_channels_t;
- // breaker io init
- void breaker_init(void);
- U8 breaker_read_id(void);
- S8 breaker_chn_read(U16* statue,U8 chanel);
- U16 get_channel_val(U8 chanel);
- breaker_channels_t *get_breakers(void);
- #endif
|