cc1352_bootloader_pkt_rx(9)
โจ cc1352_bootloader_pkt_rx(9) โจ
okay so bestie, welcome to the Kernel API Manual ๐ซถ โ this one's all about cc1352_bootloader_pkt_rx, which is literally the function that handles processing a CC1352 Bootloader Packet. iconic behavior, no cap ๐
๐ NAME ๐
cc1352_bootloader_pkt_rx โ process a CC1352 Bootloader Packet ๐
๐ธ SYNOPSIS ๐ธ
int cc1352_bootloader_pkt_rx (struct gb_beagleplay *bg , const u8 *data
, size_t count );
like, that's the whole signature, she's compact and she knows it โจ
๐ฆ ARGUMENTS ๐ฆ
bgโ the beagleplay greybus driver ๐ main character energy fr frdataโ the packet buffer, that's where the bytes livecountโ the packet buffer size, aka how much room we've got ๐
โญ RETURN โญ
the number of bytes processed ๐ (yes that's it, that's the whole return value, slay)
๐ฅ DESCRIPTION ๐ฅ
alright so here are the steps to successfully receive a packet from the cc1352 bootloader according to the docs โ and bestie, you gotta do them in order, iykyk ๐
- Wait for nonzero data to be returned from the device. this is important, like genuinely important ๐ญ โ the device may send zero bytes between a sent and a received data packet. the first nonzero byte you receive is the size of the packet that's being received ๐
- Read the next byte, which is the checksum for the packet ๐งฎ
- Read the data bytes from the device. during the data phase, packet size minus 2 bytes is sent ๐ (yes, minus two, exactly two, no notes)
- Calculate the checksum of the data bytes and verify it matches the checksum received in the packet โ โ vibe check on the checksum, basically ๐
- Send an acknowledge byte or a not-acknowledge byte to the device to indicate the successful or unsuccessful reception of the packet ๐ซถ ack or nack, choose wisely bestie
fr fr do not skip step 1, the zero-byte thing will get you and it will not be cute ๐
๐ SEE ALSO ๐
Kernel file ./drivers/greybus/gb-beagleplay.c, plus all these iconic siblings of hers โจ:
struct gb_beagleplay(9)struct hdlc_payload(9)struct hdlc_greybus_frame(9)enum cc1352_bootloader_cmd(9)enum cc1352_bootloader_status(9)struct cc1352_bootloader_packet(9)struct cc1352_bootloader_download_cmd_data(9)struct cc1352_bootloader_crc32_cmd_data(9)hdlc_write(9)hdlc_append(9)hdlc_encoded_length(9)hdlc_tx_frames(9)csum8(9)gb_message_send(9)cc1352_bootloader_empty_pkt(9)
aaaand that's the whole page bestie, go touch some packets ๐
๐ sign-off time ๐ โ this little beauty lives in./drivers/greybus, dated October 2026, and she answers to the namecc1352_bootloader_pkt_rx(9). periodt. ๐ โจ
๐ฆ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms