libtropic
C library for TROPIC01 chip
|
Used internally. More...
Files | |
file | lt_l2.h |
Layer 2 functions declarations. | |
Functions | |
lt_ret_t | lt_l2_send (lt_l2_state_t *s2) |
This function sends l2 request. Prior calling this function, place request's data into handle's iternal l2 buffer, structures defined in lt_l2_api_structs.h migh help with encoding data. More... | |
lt_ret_t | lt_l2_receive (lt_l2_state_t *s2) |
This function receives l2 response. After successfull execution, hanlde's l2_buff will contain response. Structures defined in lt_l2_api_structs.h migh help with decoding. More... | |
lt_ret_t | lt_l2_send_encrypted_cmd (lt_l2_state_t *s2, uint8_t *buff, uint16_t max_len) |
This function sends content of encrypted l3 command's buffer over l2 layer. Data are sent from handle's l3_buff. Use only after secure session was established with lt_session_start() More... | |
lt_ret_t | lt_l2_recv_encrypted_res (lt_l2_state_t *s2, uint8_t *buff, uint16_t max_len) |
This function receives encrypted l3 response over l2 layer. Data are received into handle's l3_buff. Use only after secure session was established with lt_session_start() More... | |
Function used during l2 operation.