ファームウェア関数一覧

FLASH_EnableWriteProtection

ヘッダ宣言

関数プロトタイプ

FLASH_Status FLASH_EnableWriteProtection(uint32_t FLASH_Pages)

動作

フラッシュメモリの指定したページに書込み保護を設定する。

引数

  • FLASH_Pages
    • ページサイズが1KBのデバイス

      FLASH_Pages説明
      FLASH_WRProt_Pages0to1Write protection of page 0 to 1.
      FLASH_WRProt_Pages2to3Write protection of page 2 to 3.
      FLASH_WRProt_Pages4to5Write protection of page 4 to 5.
      FLASH_WRProt_Pages6to7Write protection of page 6 to 7.
      FLASH_WRProt_Pages8to9Write protection of page 8 to 9.
      FLASH_WRProt_Pages10to11Write protection of page 10 to 11.
      FLASH_WRProt_Pages12to13Write protection of page 12 to 13.
      FLASH_WRProt_Pages14to15Write protection of page 14 to 15.
      FLASH_WRProt_Pages16to17Write protection of page 16 to 17.
      FLASH_WRProt_Pages18to19Write protection of page 18 to 19.
      FLASH_WRProt_Pages20to21Write protection of page 20 to 21.
      FLASH_WRProt_Pages22to23Write protection of page 22 to 23.
      FLASH_WRProt_Pages24to25Write protection of page 24 to 25.
      FLASH_WRProt_Pages26to27Write protection of page 26 to 27.
      FLASH_WRProt_Pages28to29Write protection of page 28 to 29.
      FLASH_WRProt_Pages30to31Write protection of page 30 to 31.
      FLASH_WRProt_Pages32to33Write protection of page 32 to 33.
      FLASH_WRProt_Pages34to35Write protection of page 34 to 35.
      FLASH_WRProt_Pages36to37Write protection of page 36 to 37.
      FLASH_WRProt_Pages38to39Write protection of page 38 to 39.
      FLASH_WRProt_Pages40to41Write protection of page 40 to 41.
      FLASH_WRProt_Pages42to43Write protection of page 42 to 43.
      FLASH_WRProt_Pages44to45Write protection of page 44 to 45.
      FLASH_WRProt_Pages46to47Write protection of page 46 to 47.
      FLASH_WRProt_Pages48to49Write protection of page 48 to 49.
      FLASH_WRProt_Pages50to51Write protection of page 50 to 51.
      FLASH_WRProt_Pages52to53Write protection of page 52 to 53.
      FLASH_WRProt_Pages54to55Write protection of page 54 to 55.
      FLASH_WRProt_Pages56to57Write protection of page 56 to 57.
      FLASH_WRProt_Pages58to59Write protection of page 58 to 59.
      FLASH_WRProt_Pages60to61Write protection of page 60 to 61.
      FLASH_WRProt_Pages62to255Write protection of page 62 to 255.
      FLASH_WRProt_AllPagesWrite protection all Pages.

    • ページサイズが2KBのデバイス

      FLASH_Pages説明
      FLASH_WRProt_Pages0to3Write protection of page 0 to 3.
      FLASH_WRProt_Pages4to7Write protection of page 4 to 7.
      FLASH_WRProt_Pages8to11Write protection of page 8 to 11.
      FLASH_WRProt_Pages12to15Write protection of page 12 to 15.
      FLASH_WRProt_Pages16to19Write protection of page 16 to 19.
      FLASH_WRProt_Pages20to23Write protection of page 20 to 23.
      FLASH_WRProt_Pages24to27Write protection of page 24 to 27.
      FLASH_WRProt_Pages28to31Write protection of page 28 to 31.
      FLASH_WRProt_Pages32to35Write protection of page 32 to 35.
      FLASH_WRProt_Pages36to39Write protection of page 36 to 39.
      FLASH_WRProt_Pages40to43Write protection of page 40 to 43.
      FLASH_WRProt_Pages44to47Write protection of page 44 to 47.
      FLASH_WRProt_Pages48to51Write protection of page 48 to 51.
      FLASH_WRProt_Pages52to55Write protection of page 52 to 55.
      FLASH_WRProt_Pages56to59Write protection of page 56 to 59.
      FLASH_WRProt_Pages60to63Write protection of page 60 to 63.
      FLASH_WRProt_Pages64to67Write protection of page 64 to 67.
      FLASH_WRProt_Pages68to71Write protection of page 68 to 71.
      FLASH_WRProt_Pages72to75Write protection of page 72 to 75.
      FLASH_WRProt_Pages76to79Write protection of page 76 to 79.
      FLASH_WRProt_Pages80to83Write protection of page 80 to 83.
      FLASH_WRProt_Pages84to87Write protection of page 84 to 87.
      FLASH_WRProt_Pages88to91Write protection of page 88 to 91.
      FLASH_WRProt_Pages92to95Write protection of page 92 to 95.
      FLASH_WRProt_Pages96to99Write protection of page 96 to 99.
      FLASH_WRProt_Pages100to103Write protection of page 100 to 103.
      FLASH_WRProt_Pages104to107Write protection of page 104 to 107.
      FLASH_WRProt_Pages108to111Write protection of page 108 to 111.
      FLASH_WRProt_Pages112to115Write protection of page 112 to 115.
      FLASH_WRProt_Pages116to119Write protection of page 115 to 119.
      FLASH_WRProt_Pages120to123Write protection of page 120 to 123.
      FLASH_WRProt_Pages124to127Write protection of page 124 to 127.
      FLASH_WRProt_AllPagesWrite protection all Pages.

戻り値

  • FLASH_Status
    処理結果を返します

    FLASH_Status説明
    FLASH_BUSYビジー(処理中)状態
    FLASH_ERROR_PGプログラムエラー
    FLASH_ERROR_WRP書き込み保護状態
    FLASH_COMPLETE処理完了
    FLASH_TIMEOUTタイムアウト(時間切れ)

サンプル

/* Protects the Pages0to3 and Pages108to111 */
FLASH_Status status = FLASH_COMPLETE;
status = FLASH_EnableWriteProtection
(FLASH_WRProt_Pages0to3|FLASH_WRProt_Pages108to111);

参照


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2011-10-13 (木) 17:23:03