OpenOCD
image.h File Reference
Include dependency graph for image.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  image
 
struct  image_binary
 
struct  image_elf
 
struct  image_ihex
 
struct  image_memory
 
struct  image_mot
 
struct  imagesection
 

Macros

#define ERROR_IMAGE_CHECKSUM   (-1403)
 
#define ERROR_IMAGE_FORMAT_ERROR   (-1400)
 
#define ERROR_IMAGE_TEMPORARILY_UNAVAILABLE   (-1402)
 
#define ERROR_IMAGE_TYPE_UNKNOWN   (-1401)
 
#define IMAGE_MAX_ERROR_STRING   (256)
 
#define IMAGE_MAX_SECTIONS   (512)
 
#define IMAGE_MEMORY_CACHE_SIZE   (2048)
 

Enumerations

enum  image_type {
  IMAGE_BINARY , IMAGE_IHEX , IMAGE_MEMORY , IMAGE_ELF ,
  IMAGE_SRECORD , IMAGE_BUILDER
}
 

Functions

int image_add_section (struct image *image, target_addr_t base, uint32_t size, uint64_t flags, uint8_t const *data)
 
int image_calculate_checksum (const uint8_t *buffer, uint32_t nbytes, uint32_t *checksum)
 
void image_close (struct image *image)
 
int image_open (struct image *image, const char *url, const char *type_string)
 
int image_read_section (struct image *image, int section, target_addr_t offset, uint32_t size, uint8_t *buffer, size_t *size_read)
 

Macro Definition Documentation

◆ ERROR_IMAGE_CHECKSUM

#define ERROR_IMAGE_CHECKSUM   (-1403)

Definition at line 108 of file image.h.

◆ ERROR_IMAGE_FORMAT_ERROR

#define ERROR_IMAGE_FORMAT_ERROR   (-1400)

Definition at line 105 of file image.h.

◆ ERROR_IMAGE_TEMPORARILY_UNAVAILABLE

#define ERROR_IMAGE_TEMPORARILY_UNAVAILABLE   (-1402)

Definition at line 107 of file image.h.

◆ ERROR_IMAGE_TYPE_UNKNOWN

#define ERROR_IMAGE_TYPE_UNKNOWN   (-1401)

Definition at line 106 of file image.h.

◆ IMAGE_MAX_ERROR_STRING

#define IMAGE_MAX_ERROR_STRING   (256)

Definition at line 27 of file image.h.

◆ IMAGE_MAX_SECTIONS

#define IMAGE_MAX_SECTIONS   (512)

Definition at line 28 of file image.h.

◆ IMAGE_MEMORY_CACHE_SIZE

#define IMAGE_MEMORY_CACHE_SIZE   (2048)

Definition at line 30 of file image.h.

Enumeration Type Documentation

◆ image_type

enum image_type
Enumerator
IMAGE_BINARY 
IMAGE_IHEX 
IMAGE_MEMORY 
IMAGE_ELF 
IMAGE_SRECORD 
IMAGE_BUILDER 

Definition at line 32 of file image.h.

Function Documentation

◆ image_add_section()

int image_add_section ( struct image image,
target_addr_t  base,
uint32_t  size,
uint64_t  flags,
uint8_t const *  data 
)

◆ image_calculate_checksum()

int image_calculate_checksum ( const uint8_t *  buffer,
uint32_t  nbytes,
uint32_t *  checksum 
)

◆ image_close()

◆ image_open()

◆ image_read_section()