3.2 HCI_EEPROM_WRITE_NUMBER Command and Event

Use the HCI_EEPROM_WRITE_NUMBER command to specify the size of the EEPROM write operation. The OCF is 0x2D and the HCI OpCode is 0xFC2D.

  • Page_Write_Number – For the BM78 module, the Page_Write_Number parameter is fixed as 0x08 and takes 1 byte.
Table 3-4. HCI_EEPROM_Page_Write_Number Command

Command

OCF

Command Parameters

Return Parameters

HCI_EEPROM_Page_Write_Number

0x2D

Page_Write_Number

Status

Use the HCI_EEPROM_Page_Write_Number command to set the number of EEPROM page write.

Page_Write_Number

Size – 1 byte

Value

Parameter Description

0xXX

For the BM78 module, the supported number of EEPROM page write

Atmel – 8 bytes

ISSI – 16 bytes

A-plus – 8 bytes

Status

Size – 1 byte

Value

Parameter Description

0x00

HCI_EEPROM_Page_Write_Number command succeeded

0x01-0xFF

HCI_EEPROM_Page_Write_Number command failed

  • Example data – The HCI_EEPROM_WRITE_NUMBER command
    • 0x01 – HCI command packet
    • 0x2D 0xFC – OpCode 0xFC2D is sent in a little endian as 0x2D 0xFC
    • 0x01 – The parameter length
    • 0x08 – The write number is 0x08 for the BM78 module
    Figure 3-5. Example of Data HCI_EEPROM_WRITE_NUMBER Command
  • Example data – Event to the HCI_EEPROM_WRITE_NUMBER command
    • 0x04 – HCI event packet
    • 0x0E – Command complete event of HCI event
    • 0x04 – Total 4 bytes of parameter appended
    • 0x01 0x2D 0xFC – The processed HCI command
    • 0x00 – Indicate a success
Figure 3-6. Event of HCI_EEPROM_WRITE_NUMBER Command