|
AM263Px MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
74 #ifndef UB_ESARRAY_ARRAY_H_
75 #define UB_ESARRAY_ARRAY_H_
int ub_esarray_add_ele(ub_esarray_cstd_t *eah, ub_esarray_element_t *ed)
add one element
struct ub_esarray_cstd ub_esarray_cstd_t
the data handle of ub_esarray object, the inside of it is private
Definition: ub_esarray.h:84
int ub_esarray_del_ele(ub_esarray_cstd_t *eah, ub_esarray_element_t *ed)
delete one element *ed
ub_esarray_cstd_t * ub_esarray_init(int esunit, int elesize, int maxeles)
initialize ub_esarray object.
void ub_esarray_close(ub_esarray_cstd_t *eah)
close ub_esarray
int ub_esarray_ele_nums(ub_esarray_cstd_t *eah)
returns the number of elements
int ub_esarray_pop_last_ele(ub_esarray_cstd_t *eah, ub_esarray_element_t *ed)
pop in stack mode(get from the last index, and delete it)
int ub_esarray_pop_ele(ub_esarray_cstd_t *eah, ub_esarray_element_t *ed)
pop in fifo mode(get from index=0, and delete index=0)
int ub_esarray_del_pointer(ub_esarray_cstd_t *eah, ub_esarray_element_t *ed)
delete one element with element pointer
int ub_esarray_del_index(ub_esarray_cstd_t *eah, int index)
delete one element with index
int ub_esarray_data_lock(ub_esarray_cstd_t *eah)
lock data to preserve checked out data by ub_esarray_get_newele or ub_esarray_get_ele
ub_esarray_element_t * ub_esarray_get_newele(ub_esarray_cstd_t *eah)
get a new element from the ub_esarray_array
int ub_esarray_data_unlock(ub_esarray_cstd_t *eah)
unlock data to return to the default status
ub_esarray_element_t * ub_esarray_get_ele(ub_esarray_cstd_t *eah, int index)
get the indexed element from the ub_esarray_array
void ub_esarray_element_t
data type of the element
Definition: ub_esarray.h:91