mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-29 22:23:06 +00:00
23 lines
465 B
C
23 lines
465 B
C
|
#pragma once
|
||
|
|
||
|
#include <stdint.h>
|
||
|
#include <stdbool.h>
|
||
|
|
||
|
void reverse_array(int length, uint8_t arr[length]);
|
||
|
|
||
|
bool shift_array_to_left(int length, uint8_t arr[length], uint8_t from_index, uint8_t offset);
|
||
|
|
||
|
void get_column_from_array(
|
||
|
int rows,
|
||
|
int cols,
|
||
|
uint8_t arr[rows][cols],
|
||
|
uint8_t column_index,
|
||
|
uint8_t* out);
|
||
|
|
||
|
void set_column_to_array(
|
||
|
int rows,
|
||
|
int cols,
|
||
|
uint8_t arr[rows][cols],
|
||
|
uint8_t column_index,
|
||
|
uint8_t* src);
|