Electronic Shelf Label Service API. More...
Go to the source code of this file.
Classes | |
struct | esls_ap_sync_param_t |
Electronic Shelf Label Service sync parameter format. More... | |
struct | esls_display_arr_t |
Electronic Shelf Label Service display information data. More... | |
struct | esls_sensor_arr_t |
Electronic Shelf Label Service sensor information data. More... | |
struct | esls_led_arr_t |
Electronic Shelf Label Service led information data. More... | |
struct | esls_char_infor_t |
Electronic Shelf Label Service characteristic information. More... | |
struct | esls_evt_t |
Electronic Shelf Label Service event. More... | |
struct | esls_nvds_cb_t |
Electronic Shelf Label Service NVDS callback func. More... | |
struct | esls_init_t |
Electronic Shelf Label Service Init variable. More... | |
Typedefs | |
typedef uint8_t(* | ble_app_nvds_get_cb_t) (uint8_t tag, uint8_t *p_len, uint8_t *p_buf) |
Electronic Shelf Label Service NVDS callback func define. More... | |
typedef uint8_t(* | ble_app_nvds_put_cb_t) (uint8_t tag, uint8_t len, uint8_t *p_buf) |
typedef uint8_t(* | ble_app_nvds_del_cb_t) (uint8_t tag) |
typedef sdk_err_t(* | esls_evt_handler_t) (esls_evt_t *p_evt) |
Electronic Shelf Label Service event handler func define. More... | |
typedef bool(* | app_dev_reset_cbk_t) (uint8_t conn_idx, bool factory_rst) |
Functions | |
struct | __attribute__ ((packed)) |
Electronic Shelf Label Service display information format. More... | |
sdk_err_t | esls_service_init (esls_init_t *p_esls_init) |
Init a Electronic Shelf Label Service instance and add in the DB. More... | |
bool | esls_service_nvds_load_flag_get (void) |
Get Electronic Shelf Label Service nvds load flag. More... | |
void | ble_esls_evt_on_ble_capture (const ble_evt_t *p_evt) |
Capture esl service events on BLE. More... | |
uint16_t | esls_service_start_handle_get (void) |
Provide the interface for other modules to obtain the esls service start handle . More... | |
sdk_err_t | esls_sync_past_param_set (esls_ap_sync_param_t *sync_past_ptr) |
Set Electronic Shelf Label default per sync trans parameter. Will be used after created conection with AP. More... | |
sdk_err_t | esls_set_state_machine (ESL_STATE_T esl_state) |
Set Electronic Shelf Label state machine. More... | |
ESL_STATE_T | esls_get_state_machine (void) |
Get Electronic Shelf Label state machine. More... | |
void | esls_service_reset (void) |
Reset Electronic Shelf Label Service state and database. More... | |
sdk_err_t | esls_tlv_response_send (uint8_t conn_idx, uint8_t *rsp_data_p, uint16_t len) |
Send response message to AP. More... | |
sdk_err_t | esls_err_state_send (uint8_t conn_idx, esl_rsp_err_code_t err_code) |
a Electronic Shelf Label Service reponse AP with a Error code. More... | |
sdk_err_t | esls_led_state_send (uint8_t conn_idx, uint8_t led_idx) |
a Electronic Shelf Label Service reponse of LED control command . More... | |
sdk_err_t | esls_base_state_send (uint8_t conn_idx) |
Sent a Electronic Shelf Label Service base state. More... | |
sdk_err_t | esls_sensor_value_send (uint8_t conn_idx, uint8_t sensor_idx, uint8_t *sensor_data_p, uint8_t len) |
Sent Electronic Shelf Label Service sensor data. More... | |
sdk_err_t | esls_display_state_send (uint8_t conn_idx, uint8_t display_idx, uint8_t image_idx) |
Sent Electronic Shelf Label Service diaplay state. More... | |
sdk_err_t | esls_user_payload_send (uint8_t conn_idx, uint8_t user_opcode, uint8_t *esl_payload, uint16_t esl_len) |
Sent Electronic Shelf Label Service user data. More... | |
sdk_err_t | esls_user_payload_prepare (uint8_t *esl_sent_buffer, uint16_t *esl_sent_buffer_offset, uint8_t user_opcode, uint8_t *esl_payload, uint16_t esl_len) |
Set Electronic Shelf Label Service user data in esl_sent_buffer, will sent later. More... | |
uint16_t | esls_service_need_state_set (bool flag) |
Electronic Shelf Label Service service need state set. More... | |
uint16_t | esls_service_need_state_get (void) |
Get Electronic Shelf Label Service service need state . More... | |
uint16_t | esls_sync_to_ap_state_set (bool flag) |
Electronic Shelf Label Service sync state set. More... | |
uint16_t | esls_sync_to_ap_state_get (void) |
Get Electronic Shelf Label Service sync state . More... | |
uint16_t | esls_active_led_state_set (bool flag) |
Electronic Shelf Label Service active LED state set. More... | |
uint16_t | esls_active_led_state_get (void) |
Get Electronic Shelf Label Service active LED state state . More... | |
uint16_t | esls_pending_led_update_state_set (bool flag) |
Electronic Shelf Label Service pengding LED state set. More... | |
uint16_t | esls_pending_led_update_state_get (void) |
Get Electronic Shelf Label Service pengding LED state state . More... | |
uint16_t | esls_pending_display_update_state_set (bool flag) |
Electronic Shelf Label Service pengding display state set. More... | |
uint16_t | esls_pending_display_update_state_get (void) |
Get Electronic Shelf Label Service pengding display state state . More... | |
Variables | |
esls_display_infor_t | |
esls_key_material_t | |
esls_display_cmd_t | |
esls_led_cmd_t | |
esls_ecp_cmd_t | |
esls_tlv_format_t | |
Electronic Shelf Label Service API.
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 esls.h.