ファームウェア関数一覧

CAN_Init

ヘッダ宣言

関数プロトタイプ

uint_t8 CAN_Init(CAN_InitTypeDef* CAN_InitStruct)

動作

引数

戻り値

場所

呼び出し関数

サンプル

/* Initialize the CAN as 1Mb/s in normal mode, receive FIFO locked:
*/
CAN_InitTypeDef CAN_InitStructure;
CAN_InitStructure.CAN_TTCM = DISABLE;
CAN_InitStructure.CAN_ABOM = DISABLE;
CAN_InitStructure.CAN_AWUM = DISABLE;
CAN_InitStructure.CAN_NART = DISABLE;
CAN_InitStructure.CAN_RFLM = ENABLE;
CAN_InitStructure.CAN_TXFP = DISABLE;
CAN_InitStructure.CAN_Mode = CAN_Mode_Normal;
CAN_InitStructure.CAN_BS1 = CAN_BS1_4tq;
CAN_InitStructure.CAN_BS2 = CAN_BS2_3tq;
CAN_InitStructure.CAN_Prescaler = 0;
CAN_Init(&CAN_InitStructure);

参照


*1 time triggered communication mode
*2 automatic bus-off management
*3 automatic wake-up mode
*4 no-automatic retransmission mode
*5 Receive Fifo Locked mode
*6 the transmit FIFO priority

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS