Specific media access Layer for OTP (One Time Programming) memory. More...
Go to the source code of this file.
Functions | |
uint16_t | OTP_If_CheckAdd (uint32_t Add) |
OTP_If_CheckAdd Check if the address is an allowed address for this memory. More... | |
uint16_t | OTP_If_DeInit (void) |
uint8_t * | OTP_If_Read (uint32_t Add, uint32_t Len) |
OTP_If_Read Memory read routine. More... | |
uint16_t | OTP_If_Write (uint32_t Add, uint32_t Len) |
OTP_If_Write Memory write routine. More... | |
Variables | |
DFU_MAL_Prop_TypeDef | DFU_Otp_cb |
Specific media access Layer for OTP (One Time Programming) memory.
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file usbd_otp_if.c.
uint16_t OTP_If_CheckAdd | ( | uint32_t | Add | ) |
OTP_If_CheckAdd Check if the address is an allowed address for this memory.
Add | Address to be checked. |
Len | Number of data to be read (in bytes). |
MAL_OK | if the address is allowed, MAL_FAIL else. |
Definition at line 115 of file usbd_otp_if.c.
uint16_t OTP_If_DeInit | ( | void | ) |
uint8_t * OTP_If_Read | ( | uint32_t | Add, |
uint32_t | Len | ||
) |
OTP_If_Read Memory read routine.
Add | Address to be read from. |
Len | Number of data to be read (in bytes). |
Pointer | to the phyisical address where data should be read. |
Definition at line 94 of file usbd_otp_if.c.
uint16_t OTP_If_Write | ( | uint32_t | Add, |
uint32_t | Len | ||
) |
OTP_If_Write Memory write routine.
Add | Address to be written to. |
Len | Number of data to be written (in bytes). |
MAL_OK | if operation is successeful, MAL_FAIL else. |
Definition at line 66 of file usbd_otp_if.c.
DFU_MAL_Prop_TypeDef DFU_Otp_cb |
Definition at line 44 of file usbd_otp_if.c.