We are using BGM111A module and connecting over UART to the host controller.
At present we have ported the BGLIB into the host controller and communicate using BGAPI protocol over the UART from the host controller to the BGM111A (UART RX/ TX Pins ).
Now we have new requirements to connect and communicate over SPI from the Host controller.
Is this possible to use the BGLIB into the host controller and communicate using BGAPI protocol over SPI pins ???
No, this is not supported.
Is it possible to implement and use our own parsing logic instead of using BGAPI protocol for BGLIB.
Sure, you could create your own protocol over SPI and call the commands in C from the BGM111 code but this can be a lot of work, depending on how complex your application is and how many commands you need to call.