#ifndef CBL_PRODUCT_CODE
#define CBL_PRODUCT_CODE 0
#endif
enum CblProgControlApp_e {
eCBL_PROG_CONTROL_APP_NOT_VALID
};
#if CBL_DICT_OBJ_1008 == 1
#endif
#if CBL_DICT_OBJ_1009 == 1
#endif
#if CBL_DICT_OBJ_100A == 1
#endif
uint8_t ubIdx1018_SubNumberG = 0x04;
{
if(btSwitchOnV)
{
}
else
{
}
}
{
if(btSwitchOnV)
{
}
else
{
}
}
{
if(btSwitchOnV)
{
}
else
{
}
}
{
if(btSwitchOnV)
{
}
else
{
}
}
{
static uint32_t ulBlockNumS = 0;
if (ubCblMgrBufferStoreG > 0)
{
{
ulBlockNumS = 0;
}
{
ulBlockNumS++;
if (uwSizeV % 2)
{
uwSizeV++;
}
{
}
ulAddrStartS = ulAddrStartS + uwSizeV;
}
ubCblMgrBufferStoreG = 0;
}
}
{
}
{
switch(ubProgControlV)
{
case eCBL_PROG_CONTROL_APP_VALID:
break;
case eCBL_PROG_CONTROL_APP_NOT_VALID:
break;
default:
break;
}
}
{
{
}
else
{
}
}
{
uint8_t * pubMemStartT;
{
}
else
{
}
}
{
return (ubBitrateT);
}
{
uint8_t ubNodeIdT = 126;
return (ubNodeIdT);
}
{
uint32_t ulSerNumT;
ulSerNumT = 1;
return(ulSerNumT);
}
{
}
{
}
{
}
{
return (eCblSdo_WRITE_OK);
}
#if CBL_SDO_BLOCK_RD > 0
uint32_t CblSdoBlkUpObjectSize(uint16_t uwIndexV, uint8_t ubSubIndexV)
{
uint32_t ulObjSizeT = 0;
if((uwIndexV == 0x1F50) && (ubSubIndexV == 0))
{
ulObjSizeT = 32768;
}
return (ulObjSizeT);
}
#endif
@ eCP_BITRATE_500K
Definition canpie.h:677
#define CBL_APP_START_ADDR
Definition cbl_conf.h:291
#define CBL_VERSION_MAJOR
Definition cbl_defs.h:72
#define CBL_VERSION_MINOR
Definition cbl_defs.h:82
void CblLedNetGreen(bool_t btSwitchOnV)
void CblLedNetRed(bool_t btSwitchOnV)
void CblLedModGreen(bool_t btSwitchOnV)
void CblLedModRed(bool_t btSwitchOnV)
CANopen Bootloader Management Functions .
uint32_t CblMgrBufferCrc(uint8_t *pubMemStartV, uint32_t ulSizeV)
void CblMgrBufferStore(uint8_t ubProgNumV, uint8_t *pubBufferV, uint16_t uwSizeV)
void CblMgrFlashFinalize(uint8_t ubProgNumV, uint32_t ulSizeV)
uint32_t CblMgrGetSerialNumber(void)
@ eCBL_PROG_CONTROL_MANUFACTURER
Definition cbl_mgr.h:139
@ eCBL_PROG_CONTROL_STOP
Definition cbl_mgr.h:127
@ eCBL_FLASH_FAIL_NO_PROGRAM
Definition cbl_mgr.h:94
@ eCBL_FLASH_FAIL_WRITE_ERROR
Definition cbl_mgr.h:106
void CblMgrEventProgControl(uint8_t ubProgNumV, uint8_t ubProgControlV)
uint8_t CblMgrGetBitrate(void)
void CblMgrFlashDelete(uint8_t ubProgNumV)
void CblMgrEventBusOff(void)
@ eCBL_FLASH_STATUS_OK
Definition cbl_mgr.h:75
@ eCBL_FLASH_STATUS_PROGRESS
Definition cbl_mgr.h:78
uint8_t CblMgrGetNodeId(void)
CANopen Bootloader Network Management functions .
void CblNmtEventStart(void)
void CblNmtEventStop(void)
void CblNmtEventPreOperational(void)
CANopen Bootloader objects .
uint32_t ulIdx1018_RevisionNumG
Identity object - revision number - index 1018:03h
uint8_t aubIdx1F51_ControlG[]
Program control - index 1F51:0xh
uint32_t aulIdx1F57_FlashStatusG[]
Flash status identification - index 1F57:0xh
uint32_t ulIdx1018_VendorIdG
Identity object - vendor ID - index 1018:01h
uint8_t aubIdx1008_DeviceNameG[]
Manufacturer device name - index 1008h
uint8_t aubIdx100A_SwVersionG[]
Manufacturer software version - index 100Ah
uint32_t ulIdx1018_ProductCodeG
Identity object - product code - index 1018:02h
uint32_t aulIdx1F56_SoftIdentG[]
Program software identification - index 1F56:0xh
uint8_t aubIdx1009_HwVersionG[]
Manufacturer hardware version - index 1009h
uint32_t ulIdx1000_DeviceTypeG
Device type - index 1008h
CANopen Bootloader SDO functions .
#define CPP_PARM_UNUSED(x)
Definition mc_compiler.h:260
MCL - erase and write flash memory .
Status_tv McFlashLock(void)
Lock the Flash memory controller.
@ eFLASH_ERR_OK
Definition mc_flash.h:77
Status_tv McFlashWrite(uint32_t ulAddressV, void *pvdDataV, uint32_t ulSizeV)
Write data.
Status_tv McFlashUnlock(void)
Unlock the Flash memory controller.
Status_tv McFlashErase(uint32_t ulFlashAddrV, uint32_t ulSizeV)
Erase page of selected address.
MCL - In-Application Programming framework .
uint32_t McIapAppSizeLimit(void)