sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget*/translations/zh_CN/driver-api/nfc/nfc-hcimodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/zh_TW/driver-api/nfc/nfc-hcimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/it_IT/driver-api/nfc/nfc-hcimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/ja_JP/driver-api/nfc/nfc-hcimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/ko_KR/driver-api/nfc/nfc-hcimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/sp_SP/driver-api/nfc/nfc-hcimodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hHCI backend for NFC Coreh]hHCI backend for NFC Core}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhD/var/lib/git/docbuild/linux/Documentation/driver-api/nfc/nfc-hci.rsthKubh bullet_list)}(hhh](h list_item)}(h#Author: Eric Lapuyade, Samuel Ortizh]h paragraph)}(hhh]h#Author: Eric Lapuyade, Samuel Ortiz}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h9Contact: eric.lapuyade@intel.com, samuel.ortiz@intel.com h]h)}(h8Contact: eric.lapuyade@intel.com, samuel.ortiz@intel.comh](h Contact: }(hhhhhNhNubh reference)}(heric.lapuyade@intel.comh]heric.lapuyade@intel.com}(hhhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:eric.lapuyade@intel.comuh1hhhubh, }(hhhhhNhNubh)}(hsamuel.ortiz@intel.comh]hsamuel.ortiz@intel.com}(hhhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:samuel.ortiz@intel.comuh1hhhubeh}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubeh}(h]h ]h"]h$]h&]bullet-uh1hhhhKhhhhubh)}(hhh](h)}(hGeneralh]hGeneral}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK ubh)}(hXThe HCI layer implements much of the ETSI TS 102 622 V10.2.0 specification. It enables easy writing of HCI-based NFC drivers. The HCI layer runs as an NFC Core backend, implementing an abstract nfc device and translating NFC Core API to HCI commands and events.h]hXThe HCI layer implements much of the ETSI TS 102 622 V10.2.0 specification. It enables easy writing of HCI-based NFC drivers. The HCI layer runs as an NFC Core backend, implementing an abstract nfc device and translating NFC Core API to HCI commands and events.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjhhubeh}(h]generalah ]h"]generalah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hHCIh]hHCI}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhhhhhKubh)}(hXHCI registers as an nfc device with NFC Core. Requests coming from userspace are routed through netlink sockets to NFC Core and then to HCI. From this point, they are translated in a sequence of HCI commands sent to the HCI layer in the host controller (the chip). Commands can be executed synchronously (the sending context blocks waiting for response) or asynchronously (the response is returned from HCI Rx context). HCI events can also be received from the host controller. They will be handled and a translation will be forwarded to NFC Core as needed. There are hooks to let the HCI driver handle proprietary events or override standard behavior. HCI uses 2 execution contexts:h]hXHCI registers as an nfc device with NFC Core. Requests coming from userspace are routed through netlink sockets to NFC Core and then to HCI. From this point, they are translated in a sequence of HCI commands sent to the HCI layer in the host controller (the chip). Commands can be executed synchronously (the sending context blocks waiting for response) or asynchronously (the response is returned from HCI Rx context). HCI events can also be received from the host controller. They will be handled and a translation will be forwarded to NFC Core as needed. There are hooks to let the HCI driver handle proprietary events or override standard behavior. HCI uses 2 execution contexts:}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjDhhubh)}(hhh](h)}(hjone for executing commands : nfc_hci_msg_tx_work(). Only one command can be executing at any given moment.h]h)}(hjone for executing commands : nfc_hci_msg_tx_work(). Only one command can be executing at any given moment.h]hjone for executing commands : nfc_hci_msg_tx_work(). Only one command can be executing at any given moment.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjfubah}(h]h ]h"]h$]h&]uh1hhjchhhhhNubh)}(hJone for dispatching received events and commands : nfc_hci_msg_rx_work(). h]h)}(hIone for dispatching received events and commands : nfc_hci_msg_rx_work().h]hIone for dispatching received events and commands : nfc_hci_msg_rx_work().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hj~ubah}(h]h ]h"]h$]h&]uh1hhjchhhhhNubeh}(h]h ]h"]h$]h&]jjuh1hhhhKhjDhhubeh}(h]hciah ]h"]hciah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hHCI Session initializationh]hHCI Session initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK#ubh)}(hXThe Session initialization is an HCI standard which must unfortunately support proprietary gates. This is the reason why the driver will pass a list of proprietary gates that must be part of the session. HCI will ensure all those gates have pipes connected when the hci device is set up. In case the chip supports pre-opened gates and pseudo-static pipes, the driver can pass that information to HCI core.h]hXThe Session initialization is an HCI standard which must unfortunately support proprietary gates. This is the reason why the driver will pass a list of proprietary gates that must be part of the session. HCI will ensure all those gates have pipes connected when the hci device is set up. In case the chip supports pre-opened gates and pseudo-static pipes, the driver can pass that information to HCI core.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjhhubeh}(h]hci-session-initializationah ]h"]hci session initializationah$]h&]uh1hhhhhhhhK#ubh)}(hhh](h)}(hHCI Gates and Pipesh]hHCI Gates and Pipes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK-ubh)}(hXTA gate defines the 'port' where some service can be found. In order to access a service, one must create a pipe to that gate and open it. In this implementation, pipes are totally hidden. The public API only knows gates. This is consistent with the driver need to send commands to proprietary gates without knowing the pipe connected to it.h]hXXA gate defines the ‘port’ where some service can be found. In order to access a service, one must create a pipe to that gate and open it. In this implementation, pipes are totally hidden. The public API only knows gates. This is consistent with the driver need to send commands to proprietary gates without knowing the pipe connected to it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjhhubeh}(h]hci-gates-and-pipesah ]h"]hci gates and pipesah$]h&]uh1hhhhhhhhK-ubh)}(hhh](h)}(hDriver interfaceh]hDriver interface}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK6ubh)}(hA driver is generally written in two parts : the physical link management and the HCI management. This makes it easier to maintain a driver for a chip that can be connected using various phy (i2c, spi, ...)h]hA driver is generally written in two parts : the physical link management and the HCI management. This makes it easier to maintain a driver for a chip that can be connected using various phy (i2c, spi, ...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK8hjhhubeh}(h]driver-interfaceah ]h"]driver interfaceah$]h&]uh1hhhhhhhhK6ubh)}(hhh](h)}(hHCI Managementh]hHCI Management}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK=ubh)}(hYA driver would normally register itself with HCI and provide the following entry points::h]hXA driver would normally register itself with HCI and provide the following entry points:}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hjhhubh literal_block)}(hX!struct nfc_hci_ops { int (*open)(struct nfc_hci_dev *hdev); void (*close)(struct nfc_hci_dev *hdev); int (*hci_ready) (struct nfc_hci_dev *hdev); int (*xmit) (struct nfc_hci_dev *hdev, struct sk_buff *skb); int (*start_poll) (struct nfc_hci_dev *hdev, u32 im_protocols, u32 tm_protocols); int (*dep_link_up)(struct nfc_hci_dev *hdev, struct nfc_target *target, u8 comm_mode, u8 *gb, size_t gb_len); int (*dep_link_down)(struct nfc_hci_dev *hdev); int (*target_from_gate) (struct nfc_hci_dev *hdev, u8 gate, struct nfc_target *target); int (*complete_target_discovered) (struct nfc_hci_dev *hdev, u8 gate, struct nfc_target *target); int (*im_transceive) (struct nfc_hci_dev *hdev, struct nfc_target *target, struct sk_buff *skb, data_exchange_cb_t cb, void *cb_context); int (*tm_send)(struct nfc_hci_dev *hdev, struct sk_buff *skb); int (*check_presence)(struct nfc_hci_dev *hdev, struct nfc_target *target); int (*event_received)(struct nfc_hci_dev *hdev, u8 gate, u8 event, struct sk_buff *skb); };h]hX!struct nfc_hci_ops { int (*open)(struct nfc_hci_dev *hdev); void (*close)(struct nfc_hci_dev *hdev); int (*hci_ready) (struct nfc_hci_dev *hdev); int (*xmit) (struct nfc_hci_dev *hdev, struct sk_buff *skb); int (*start_poll) (struct nfc_hci_dev *hdev, u32 im_protocols, u32 tm_protocols); int (*dep_link_up)(struct nfc_hci_dev *hdev, struct nfc_target *target, u8 comm_mode, u8 *gb, size_t gb_len); int (*dep_link_down)(struct nfc_hci_dev *hdev); int (*target_from_gate) (struct nfc_hci_dev *hdev, u8 gate, struct nfc_target *target); int (*complete_target_discovered) (struct nfc_hci_dev *hdev, u8 gate, struct nfc_target *target); int (*im_transceive) (struct nfc_hci_dev *hdev, struct nfc_target *target, struct sk_buff *skb, data_exchange_cb_t cb, void *cb_context); int (*tm_send)(struct nfc_hci_dev *hdev, struct sk_buff *skb); int (*check_presence)(struct nfc_hci_dev *hdev, struct nfc_target *target); int (*event_received)(struct nfc_hci_dev *hdev, u8 gate, u8 event, struct sk_buff *skb); };}hj:sbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1j8hhhKBhjhhubh)}(hhh](h)}(h6open() and close() shall turn the hardware on and off.h]h)}(hjOh]h6open() and close() shall turn the hardware on and off.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKZhjMubah}(h]h ]h"]h$]h&]uh1hhjJhhhhhNubh)}(hhci_ready() is an optional entry point that is called right after the hci session has been set up. The driver can use it to do additional initialization that must be performed using HCI commands.h]h)}(hhci_ready() is an optional entry point that is called right after the hci session has been set up. The driver can use it to do additional initialization that must be performed using HCI commands.h]hhci_ready() is an optional entry point that is called right after the hci session has been set up. The driver can use it to do additional initialization that must be performed using HCI commands.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK[hjdubah}(h]h ]h"]h$]h&]uh1hhjJhhhhhNubh)}(h7xmit() shall simply write a frame to the physical link.h]h)}(hj~h]h7xmit() shall simply write a frame to the physical link.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK^hj|ubah}(h]h ]h"]h$]h&]uh1hhjJhhhhhNubh)}(hstart_poll() is an optional entrypoint that shall set the hardware in polling mode. This must be implemented only if the hardware uses proprietary gates or a mechanism slightly different from the HCI standard.h]h)}(hstart_poll() is an optional entrypoint that shall set the hardware in polling mode. This must be implemented only if the hardware uses proprietary gates or a mechanism slightly different from the HCI standard.h]hstart_poll() is an optional entrypoint that shall set the hardware in polling mode. This must be implemented only if the hardware uses proprietary gates or a mechanism slightly different from the HCI standard.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK_hjubah}(h]h ]h"]h$]h&]uh1hhjJhhhhhNubh)}(hdep_link_up() is called after a p2p target has been detected, to finish the p2p connection setup with hardware parameters that need to be passed back to nfc core.h]h)}(hdep_link_up() is called after a p2p target has been detected, to finish the p2p connection setup with hardware parameters that need to be passed back to nfc core.h]hdep_link_up() is called after a p2p target has been detected, to finish the p2p connection setup with hardware parameters that need to be passed back to nfc core.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKbhjubah}(h]h ]h"]h$]h&]uh1hhjJhhhhhNubh)}(h5dep_link_down() is called to bring the p2p link down.h]h)}(hjh]h5dep_link_down() is called to bring the p2p link down.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKehjubah}(h]h ]h"]h$]h&]uh1hhjJhhhhhNubh)}(hmtarget_from_gate() is an optional entrypoint to return the nfc protocols corresponding to a proprietary gate.h]h)}(hmtarget_from_gate() is an optional entrypoint to return the nfc protocols corresponding to a proprietary gate.h]hmtarget_from_gate() is an optional entrypoint to return the nfc protocols corresponding to a proprietary gate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKfhjubah}(h]h ]h"]h$]h&]uh1hhjJhhhhhNubh)}(hcomplete_target_discovered() is an optional entry point to let the driver perform additional proprietary processing necessary to auto activate the discovered target.h]h)}(hcomplete_target_discovered() is an optional entry point to let the driver perform additional proprietary processing necessary to auto activate the discovered target.h]hcomplete_target_discovered() is an optional entry point to let the driver perform additional proprietary processing necessary to auto activate the discovered target.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhjubah}(h]h ]h"]h$]h&]uh1hhjJhhhhhNubh)}(hXim_transceive() must be implemented by the driver if proprietary HCI commands are required to send data to the tag. Some tag types will require custom commands, others can be written to using the standard HCI commands. The driver can check the tag type and either do proprietary processing, or return 1 to ask for standard processing. The data exchange command itself must be sent asynchronously.h]h)}(hXim_transceive() must be implemented by the driver if proprietary HCI commands are required to send data to the tag. Some tag types will require custom commands, others can be written to using the standard HCI commands. The driver can check the tag type and either do proprietary processing, or return 1 to ask for standard processing. The data exchange command itself must be sent asynchronously.h]hXim_transceive() must be implemented by the driver if proprietary HCI commands are required to send data to the tag. Some tag types will require custom commands, others can be written to using the standard HCI commands. The driver can check the tag type and either do proprietary processing, or return 1 to ask for standard processing. The data exchange command itself must be sent asynchronously.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKkhj ubah}(h]h ]h"]h$]h&]uh1hhjJhhhhhNubh)}(h@tm_send() is called to send data in the case of a p2p connectionh]h)}(hj$h]h@tm_send() is called to send data in the case of a p2p connection}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKqhj"ubah}(h]h ]h"]h$]h&]uh1hhjJhhhhhNubh)}(hcheck_presence() is an optional entry point that will be called regularly by the core to check that an activated tag is still in the field. If this is not implemented, the core will not be able to push tag_lost events to the user spaceh]h)}(hcheck_presence() is an optional entry point that will be called regularly by the core to check that an activated tag is still in the field. If this is not implemented, the core will not be able to push tag_lost events to the user spaceh]hcheck_presence() is an optional entry point that will be called regularly by the core to check that an activated tag is still in the field. If this is not implemented, the core will not be able to push tag_lost events to the user space}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKrhj9ubah}(h]h ]h"]h$]h&]uh1hhjJhhhhhNubh)}(hevent_received() is called to handle an event coming from the chip. Driver can handle the event or return 1 to let HCI attempt standard processing. h]h)}(hevent_received() is called to handle an event coming from the chip. Driver can handle the event or return 1 to let HCI attempt standard processing.h]hevent_received() is called to handle an event coming from the chip. Driver can handle the event or return 1 to let HCI attempt standard processing.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKvhjQubah}(h]h ]h"]h$]h&]uh1hhjJhhhhhNubeh}(h]h ]h"]h$]h&]jjuh1hhhhKZhjhhubh)}(hOn the rx path, the driver is responsible to push incoming HCP frames to HCI using nfc_hci_recv_frame(). HCI will take care of re-aggregation and handling This must be done from a context that can sleep.h]hOn the rx path, the driver is responsible to push incoming HCP frames to HCI using nfc_hci_recv_frame(). HCI will take care of re-aggregation and handling This must be done from a context that can sleep.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKyhjhhubeh}(h]hci-managementah ]h"]hci managementah$]h&]uh1hhhhhhhhK=ubh)}(hhh](h)}(hPHY Managementh]hPHY Management}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK~ubh)}(hOThe physical link (i2c, ...) management is defined by the following structure::h]hNThe physical link (i2c, ...) management is defined by the following structure:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj9)}(hstruct nfc_phy_ops { int (*write)(void *dev_id, struct sk_buff *skb); int (*enable)(void *dev_id); void (*disable)(void *dev_id); };h]hstruct nfc_phy_ops { int (*write)(void *dev_id, struct sk_buff *skb); int (*enable)(void *dev_id); void (*disable)(void *dev_id); };}hjsbah}(h]h ]h"]h$]h&]jHjIuh1j8hhhKhjhhubhdefinition_list)}(hhh](hdefinition_list_item)}(hDenable(): turn the phy on (power on), make it ready to transfer datah](hterm)}(h enable():h]h enable():}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubh definition)}(hhh]h)}(h:turn the phy on (power on), make it ready to transfer datah]h:turn the phy on (power on), make it ready to transfer data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hdisable(): turn the phy offh](j)}(h disable():h]h disable():}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]h)}(hturn the phy offh]hturn the phy off}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(hwrite(): Send a data frame to the chip. Note that to enable higher layers such as an llc to store the frame for re-emission, this function must not alter the skb. It must also not return a positive result (return 0 for success, negative for failure). h](j)}(hwrite():h]hwrite():}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]h)}(hSend a data frame to the chip. Note that to enable higher layers such as an llc to store the frame for re-emission, this function must not alter the skb. It must also not return a positive result (return 0 for success, negative for failure).h]hSend a data frame to the chip. Note that to enable higher layers such as an llc to store the frame for re-emission, this function must not alter the skb. It must also not return a positive result (return 0 for success, negative for failure).}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubh)}(hIData coming from the chip shall be sent directly to nfc_hci_recv_frame().h]hIData coming from the chip shall be sent directly to nfc_hci_recv_frame().}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]phy-managementah ]h"]phy managementah$]h&]uh1hhhhhhhhK~ubh)}(hhh](h)}(hLLCh]hLLC}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhhhhhKubh)}(hCommunication between the CPU and the chip often requires some link layer protocol. Those are isolated as modules managed by the HCI layer. There are currently two modules : nop (raw transfer) and shdlc. A new llc must implement the following functions::h]hCommunication between the CPU and the chip often requires some link layer protocol. Those are isolated as modules managed by the HCI layer. There are currently two modules : nop (raw transfer) and shdlc. A new llc must implement the following functions:}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjfhhubj9)}(hX(struct nfc_llc_ops { void *(*init) (struct nfc_hci_dev *hdev, xmit_to_drv_t xmit_to_drv, rcv_to_hci_t rcv_to_hci, int tx_headroom, int tx_tailroom, int *rx_headroom, int *rx_tailroom, llc_failure_t llc_failure); void (*deinit) (struct nfc_llc *llc); int (*start) (struct nfc_llc *llc); int (*stop) (struct nfc_llc *llc); void (*rcv_from_drv) (struct nfc_llc *llc, struct sk_buff *skb); int (*xmit_from_hci) (struct nfc_llc *llc, struct sk_buff *skb); };h]hX(struct nfc_llc_ops { void *(*init) (struct nfc_hci_dev *hdev, xmit_to_drv_t xmit_to_drv, rcv_to_hci_t rcv_to_hci, int tx_headroom, int tx_tailroom, int *rx_headroom, int *rx_tailroom, llc_failure_t llc_failure); void (*deinit) (struct nfc_llc *llc); int (*start) (struct nfc_llc *llc); int (*stop) (struct nfc_llc *llc); void (*rcv_from_drv) (struct nfc_llc *llc, struct sk_buff *skb); int (*xmit_from_hci) (struct nfc_llc *llc, struct sk_buff *skb); };}hjsbah}(h]h ]h"]h$]h&]jHjIuh1j8hhhKhjfhhubj)}(hhh](j)}(h.init(): allocate and init your private storageh](j)}(hinit():h]hinit():}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]h)}(h&allocate and init your private storageh]h&allocate and init your private storage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hdeinit(): cleanuph](j)}(h deinit():h]h deinit():}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]h)}(hcleanuph]hcleanup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(h)start(): establish the logical connectionh](j)}(hstart():h]hstart():}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]h)}(h establish the logical connectionh]h establish the logical connection}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(h)stop (): terminate the logical connectionh](j)}(hstop ():h]hstop ():}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj#ubj)}(hhh]h)}(h terminate the logical connectionh]h terminate the logical connection}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj5ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(h>rcv_from_drv(): handle data coming from the chip, going to HCIh](j)}(hrcv_from_drv():h]hrcv_from_drv():}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjRubj)}(hhh]h)}(h.handle data coming from the chip, going to HCIh]h.handle data coming from the chip, going to HCI}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjdubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(hjjjjjjjjjjjcj`jjj j jjjjjjjhjeu nametypes}(jpjAjjjjjjcjj jjjjhuh}(jmhj>jjjDjjjjjjjjj`jjjfj jjjjjjjjeju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.