Classes | Macros | Typedefs | Enumerations | Functions
gr55xx_fpb.h File Reference
`#include <stdint.h>`
`#include <stdio.h>`
`#include <stdbool.h>`
Include dependency graph for gr55xx_fpb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes
struct | FPB_REG_TypeDef
| FPB register. More...

## Macros
#define | FPB ((FPB_REG_TypeDef *) 0xE0002000UL)
| FPB Register Address. More...

## Typedefs
typedef void(* | fun_t) (void)
| FPB function. More...

## Enumerations
enum | fpb_mode_t { FPB_MODE_PATCH_ONLY = 0, FPB_MODE_DEBUG_ONLY, FPB_MODE_PATCH_AND_DEBUG }
| FPB mode. More...
enum | fpb_state_t { FPB_PATCH_OFF = 0, FPB_PATCH_ON }
| FPB state. More...

## Functions
void | fpb_enable (uint8_t index_start, uint8_t index_end)
| Enabling patch function. More...
int | fun_replace_by_svc (uint32_t ori_func, uint32_t rep_func, uint8_t patch_table_num)
| Replace old and new functions. More...
uint32_t | SVC_handler_proc (uint32_t *svc_args)
| SVC handler process function. More...
void | fpb_register_patch_init_func (fun_t patch_enable_func)
| Register FPB patch enable function. More...
void | fpb_init (fpb_mode_t fpb_mode)
| FPB init function. More...
void | svc_func_register (uint8_t svc_num, uint32_t func)
| svc sub-function register More...
void | svc_table_register (uint32_t *p_svc_table)
| register sve table function More...
void | fpb_register_user_space (uint32_t *user_fpb_space)
| register fpb space from user layer More...
fpb_state_t | fpb_save_state (void)
| save the FPB state More...
void | fpb_load_state (fpb_state_t state)
| load the FPB state More...

## Detailed Description

Attention

  ##### Copyright (c) 2019 GOODIX

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file gr55xx_fpb.h.