You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
2.8 KiB
41 lines
2.8 KiB
1 year ago
|
//#############################################################################################################################################################################################################
|
||
|
#ifndef _INC_IDIBUS_IMPL_H_
|
||
|
#define _INC_IDIBUS_IMPL_H_
|
||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
#include <inttypes.h>
|
||
|
#include "IDIBUS_BOOTLOADER_DEFS.h"
|
||
|
#include <avr/io.h>
|
||
|
#include <util/delay.h>
|
||
|
#include "System.h"
|
||
|
#include "bootFunctions.h"
|
||
|
//#include "MODBUS_CRC.h"
|
||
|
#include <avr/pgmspace.h>
|
||
|
#include "USART_COM.h"
|
||
|
#include "RSLink.h"
|
||
|
#include "CRCs.h"
|
||
|
//#include "EEPROM_Fast.h"
|
||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
typedef struct {
|
||
|
uint8_t ComFunc;
|
||
|
uint16_t InpDataLength;
|
||
|
volatile uint8_t *OutData;
|
||
|
uint16_t OutDataLength;
|
||
|
uint8_t SMPS;
|
||
|
//uint8_t ErrorState;
|
||
|
//uint8_t LongOpState;
|
||
|
} IDIBUS_FARG_TYPE;
|
||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
IDIBUS_FARG_TYPE FARG;
|
||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
#define IDIBUS_SYSTEM_SW_VERSION 0x3133U
|
||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
void IDIBUS_ModuleCommandHandler();
|
||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
void IDIBUS_ResponseProtectedWrite(uint8_t *Data, uint16_t DataLength, uint8_t ErrorCode);
|
||
|
void IDIBUS_ModuleBackgroundHandler(void);
|
||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
#endif // #ifndef _INC_IDIBUS_IMPL_H_
|
||
|
//#############################################################################################################################################################################################################
|
||
|
|