Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C by yentl ( 7 years ago )
void restart_EM(){
CAN_TxHeaderTypeDef header;
header.StdId = NODE_ENERGYMETER_CONFIG;
header.IDE = CAN_ID_STD;
header.DLC = 1;
header.RTR = CAN_RTR_DATA;
uint8_t data = RESTART_ENERGYMETER;
if(HAL_CAN_AddTxMessage(&hcan, &header, &data, &mailbox) != HAL_OK){
}
}
Revise this Paste