aboutsummaryrefslogtreecommitdiff
path: root/src/target/target.h
diff options
context:
space:
mode:
authorStefan Mahr <stefan.mahr@sphairon.com>2011-08-10 22:34:41 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-08-12 12:00:42 +0200
commit28f088dc661d4c0e50c60876a5d6eec13d144c0c (patch)
tree4a02fa3926fbef4693ae5d8d14797e338c512891 /src/target/target.h
parent85cf298667fbb64ebffed4a1db57223535a888c9 (diff)
target: add helper functions to get/set u16 or u32 array from/to buffer
Diffstat (limited to 'src/target/target.h')
-rw-r--r--src/target/target.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/target/target.h b/src/target/target.h
index 74f74dee..1b5730f2 100644
--- a/src/target/target.h
+++ b/src/target/target.h
@@ -524,6 +524,11 @@ void target_buffer_set_u32(struct target *target, uint8_t *buffer, uint32_t valu
void target_buffer_set_u24(struct target *target, uint8_t *buffer, uint32_t value);
void target_buffer_set_u16(struct target *target, uint8_t *buffer, uint16_t value);
+void target_buffer_get_u32_array(struct target *target, const uint8_t *buffer, uint32_t count, uint32_t *dstbuf);
+void target_buffer_get_u16_array(struct target *target, const uint8_t *buffer, uint32_t count, uint16_t *dstbuf);
+void target_buffer_set_u32_array(struct target *target, uint8_t *buffer, uint32_t count, uint32_t *srcbuf);
+void target_buffer_set_u16_array(struct target *target, uint8_t *buffer, uint32_t count, uint16_t *srcbuf);
+
int target_read_u32(struct target *target, uint32_t address, uint32_t *value);
int target_read_u16(struct target *target, uint32_t address, uint16_t *value);
int target_read_u8(struct target *target, uint32_t address, uint8_t *value);