Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
flockwave-gps / gps / ubx / encoder.py
Size: Mime:
from typing import Callable

from .packet import UBXPacket

__all__ = ("create_ubx_encoder",)


def create_ubx_encoder() -> Callable[[UBXPacket], bytes]:
    """Creates a UBX encoder function that is suitable to be used in
    conjunction with the channels from the ``flockwave-conn`` module.

    Returns:
        the encoder function
    """
    return UBXPacket.encode