45 #define LEDGER_BLE_get_mac_address(address) \
47 unsigned char se_serial[8] = {0}; \
48 os_serial(se_serial, sizeof(se_serial)); \
49 unsigned int uid = cx_crc16(se_serial, 4); \
51 address[1] = uid >> 8; \
52 uid = cx_crc16(se_serial + 4, 4); \
54 address[3] = uid >> 8; \
CRC (Cyclic Redundancy Check).
void LEDGER_BLE_receive(const uint8_t *spi_buffer)
void LEDGER_BLE_reset_pairings(void)
void LEDGER_BLE_enable_advertising(uint8_t enable)
void LEDGER_BLE_set_recv_buffer(uint8_t *buffer, uint16_t buffer_length)
void LEDGER_BLE_send(const uint8_t *packet, uint16_t packet_length)
void LEDGER_BLE_accept_pairing(uint8_t status)
void LEDGER_BLE_init(void)