MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / setSequence

Method setSequence

libraries/SIMON/simon.cpp:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20bool SIMON::setSequence(uint8_t * array, uint8_t length)
21{
22 if ((length > _maxSize) || (array == NULL))
23 {
24 _size = 0;
25 return false;
26 }
27 for (uint8_t i = 0; i < length; i++)
28 {
29 _sequence[i] = array[i];
30 }
31 _size = length;
32 return true;
33}
34
35
36bool SIMON::generateSequence(uint8_t length, uint8_t minimum, uint8_t maximum)

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64