Functions | Variables
usbd_otp_if.c File Reference

Specific media access Layer for OTP (One Time Programming) memory. More...

#include "usbd_otp_if.h"
#include "usbd_dfu_mal.h"
Include dependency graph for usbd_otp_if.c:

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
 

Detailed Description

Specific media access Layer for OTP (One Time Programming) memory.

Author
MCD Application Team
Version
V1.1.0
Date
19-March-2012
Attention

© COPYRIGHT 2012 STMicroelectronics

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.

Function Documentation

uint16_t OTP_If_CheckAdd ( uint32_t  Add)

OTP_If_CheckAdd Check if the address is an allowed address for this memory.

Parameters
AddAddress to be checked.
LenNumber of data to be read (in bytes).
Return values
MAL_OKif 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.

Parameters
AddAddress to be read from.
LenNumber of data to be read (in bytes).
Return values
Pointerto 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.

Parameters
AddAddress to be written to.
LenNumber of data to be written (in bytes).
Return values
MAL_OKif operation is successeful, MAL_FAIL else.

Definition at line 66 of file usbd_otp_if.c.

Variable Documentation

Initial value:
=
{
NULL,
NULL,
NULL,
1,
10
}
uint8_t * OTP_If_Read(uint32_t Add, uint32_t Len)
OTP_If_Read Memory read routine.
Definition: usbd_otp_if.c:94
#define OTP_IF_STRING
Definition: usbd_otp_if.h:40
uint16_t OTP_If_CheckAdd(uint32_t Add)
OTP_If_CheckAdd Check if the address is an allowed address for this memory.
Definition: usbd_otp_if.c:115
uint16_t OTP_If_Write(uint32_t Add, uint32_t Len)
OTP_If_Write Memory write routine.
Definition: usbd_otp_if.c:66
#define NULL
Definition: usbd_def.h:50

Definition at line 44 of file usbd_otp_if.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:21