package
0.0.0-20241008140959-2a93b025d5f1
Repository: https://github.com/google/google-ctf.git
Documentation: pkg.go.dev
# Functions
NewBitStreamTx will create a new bit stream transmitter module.
NewIOTProtocolDecoder will create a new IOT Protocol Decoder.
NewIRReceiver will create a new IR Receiver module.
NewIRTransmitter will create a new IR transmitter.
NewNECDecoder will create a new NEC IR Protocol decoder.
NewSampler will create a new sampler module with the specified sample rate.
NewSchmidtTrigger will create a new Schmidt Trigger module, specified by tLo (high to low transition level) and tHi (low to high transition level).
NewSimulator will create a new simulator module.
# Constants
CarrierFreq is the carrier frequency of the Infrared signal.
CommandGetCO2 is the command byte for Get CO2 reading command.
CommandGetHumidity is the command byte for Get Humidity command.
CommandGetSmokeDetector is the command byte for Get Smoke Detector status command.
CommandGetTemp is the command byte for Get Temperature command.
CommandPing is the command byte for Ping command.
CommandReply is the flag for indicating that the command byte is the reply not the request.
CommandSetTime is the command byte for Set Time command.
CommandSystemVersion is the command byte for Get System Version command.
Crc8Poly is the polnomial for CRC8 calculation.
DefaultSampleRate is the sample rate of our simulation.
IOTBaudRate is the Baud rate of our protocol.
IRRBandpassFc is the Fc for the bandpass filter in IR Receiver to filter out everything but the IR carrier signal.
IRRRecoveryFc is the Fc of the output low pass filter in IR Receiver.
IRRSignalDetectorFc is the low pass filter Fc for signal strength detector in IR Receiver.
# Structs
BitStreamTx is a bit stream transmitter module.
IOTProtocolDecoder is an IOT Protocol Decoder module, will take an input bit stream, look for the IOT Protocol header byte, then decode it.
IRReceiver is an IR Receiver module.
IRTransmitter is an IR Transmitter module.
NECDecoder is an NEC IR Protocol decoder.
Sampler is a sampler module, will sample the input at specified sample rate.
SchmidtTrigger is a Schmidt Trigger module.
Simulator is the root simulator module.